2011-03-01 13 views

回答

2

這裏是指當您按下按鈕時,您如何添加一個動作。

但是,對我來說,你的問題是不明確......

UIButton * myButton = [[UIButton alloc] init]; 
[myButton addTarget:self action:@selector(doSomeActionMethod) forControlEvents:UIControlEventTouchDown];