forum

home / developersection / forums / @selector creation with method name and parameter

@selector creation with method name and parameter

Anonymous User 1590 09-Nov-2015

I created a sample that gets a SEL from currentObject,
SEL callback = @selector(methodName: parameterTwo);
Andalso I have a method like this:

- (void) methodName: (id) var1 parameter2;(NSString*) var2 {
}

Now I want to move methodName to another object, with passing delegateObj.
This is the code that I have tried:

SEL callback = @selector(myDelegate, mymethod:parameter2);

but it’s not working, please anyone tell me the reason.


Updated on 15-Nov-2015

I am a content writter !


Message
Can you answer this question?

Answer

1 Answers

Liked By