I\'m getting the following warning by the ARC compiler:
\"performSelector may cause a leak because its selector is unknown\".
Here\'s what
You could also use a protocol here. So, create a protocol like so:
@protocol MyProtocol
-(void)doSomethingWithObject:(id)object;
@end
In your class that needs to call your selector, you then have a @property.
@interface MyObject
@property (strong) id source;
@end
When you need to call @selector(doSomethingWithObject:)
in an instance of MyObject, do this:
[self.source doSomethingWithObject:object];