How do I send a selector to another class? I want to send a selector from a subview to the main view to push the next view controller.
SEL selectorToSend = @selector(mySuperDuperMessage:);
[otherClass iWantASelector:selectorToSend];
otherClass:
@interface{
SEL aSelector;
}
@implementation{
-(void) iWantASelector:(SEL) newSelector
{
aSelector = newSelector;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With