I have a custom BackBarButton where I have a property to store a selector which can change in some cases. So I can't use delegation really smoothly.
What can I do to get rid of this warning without changing the 'workflow' to delegation? The property is defined by using this:
@property (nonatomic, strong) id<SPUniversalBackBarButtonItemDelegate> delegate;
@property (nonatomic, assign) SEL delegationSelector;
I also tried to use this code, but it says 'No known instance method for selector...' and 'Implicit conversation of an Objective-C pointer to IMP'...
IMP imp = [[self delegate] methodForSelector:[self delegationSelector]];
void (*func)(id, SEL) = (void *)imp;
func([self delegate], [self delegationSelector]);