今天開始寫ios開發基礎,自己要開始做乙個專案,好用來找第乙份實習工作,開始記錄我學習ios開發的過程。
以下是寫在viewcontroller.m檔案下的。
//// viewcontroller.m
// 01-button
//// created by linjia on 15/8/22.
//#import"viewcontroller.h"
@inte***ceviewcontroller ()
@end
@implementationviewcontroller
- (void)viewdidload
- (void)didreceivememorywarning
// 這裡是buttonpressed觸發事件的具體的實現**
- (void)buttonpressed:(id)sender
@end
iOS開發UI Button基礎知識
二 建立button按鈕 建立乙個btn物件,根據型別來建立btn 圓角型別btn uibuttontyperoundedrect 通過類方法來建立buttonwithtype 類名 方法名 uibutton btn uibutton buttonwithtype uibuttontyperound...
UIButton 按鈕控制項 IOS開發
uibutton是乙個標準的uicontrol控制項,所以如果你對uicontrol不甚了解還是先看一下我的另一篇博文 uicontrol ios控制項程式設計 一 建立 兩種方法 1.常規的 initwithframe uibutton btn1 uibutton alloc initwithfr...
IOS介面開發之UIButton
測試uiimageview控制項 uibutton btnimageview uibutton buttonwithtype uibuttontypesystem btnimageview.frame cgrectmake 110,rect.size.height 40,150,30 btnimag...