I have a method in ClassA which is called Selector1,
In ClassB I want to create a NSInvocation object and set the Selector1 as the object's selector. Is this possible? I don't know the proper way to set up this.
The code I am trying to use in ClassB is like this:
NSMethodSignature *signature = [ClassA methodSignatureForSelector:@selector(Selector1:)];
NSInvocation *invocationToPass = [NSInvocation invocationWithMethodSignature:signature];
invocationToPass.target = self;
invocationToPass.selector = Selector1; // How can I assign Selector1 from ClassA?