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];
精彩评论