开发者

How to create events in Obj-c via code?

开发者 https://www.devze.com 2023-04-08 19:13 出处:网络
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....

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

精彩评论

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