开发者

Perform Action Simultaneously when touchdown the UIButton

开发者 https://www.devze.com 2023-02-14 05:31 出处:网络
HI... I ha开发者_开发技巧ve a UIButton with some action when i touch down the button the action performed simultaneously.

HI... I ha开发者_开发技巧ve a UIButton with some action when i touch down the button the action performed simultaneously.

Any one know plz answer this..


Here is how your can add an action when you press your button down.

But, for me, your question is not clear...

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

精彩评论

暂无评论...
验证码 换一张
取 消