iPhone. About action target again.

Posted by Siegfried on Stack Overflow See other posts from Stack Overflow or by Siegfried
Published on 2010-06-09T15:21:43Z Indexed on 2010/06/09 15:32 UTC
Read the original article Hit count: 247

Filed under:
|

This line of code is in AController.m

UIBarButtonItem *addButton = [[UIBarButtonItem alloc]
    initWithBarButtonSystemItem:UIBarButtonSystemItemAdd
    target:self
    action:@selector(addItem)];

And -(void)addItem is also in AController.m

If I want to call a method -(void)addItem1 in BController.m, how can I change to make it work? What should I pass to the target parameter?

Many thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about target