objective-cselectorperformselector

Use performSelector with three or more arguments?


The various performSelector:... methods can handle a maximum of two arguments passed to the specified selector. What can I do if I need to pass three or more arguments?


Solution

  • You need to use NSInvocation class for that. Check this SO question for more details on using them.