开发者

How to create events in Obj-c via code?

I have one UIButton and i need to create event Touch up inside开发者_StackOverflow中文版 how i can to create this event no using IB in implementation file .m?


Something like this would do the trick....

[myButton addTarget:self action:@selector(clickMethod:) forControlEvents:UIControlEventTouchUpInside];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜