iPhone. About action target again.
- by Siegfried
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!