I’ve some IBActions, like
-(IBAction) doAdd;
-(IBAction) doEdit;
I want to add those to an NSArray for passing it to some class as argument of a function. I am trying like
myArray=[[NSArray alloc] initWithObjects:doAdd, doEdit, nil];
but its not working for me. Is there any way it can be possible?
Methods are not objects. You can not add a method as an object. What you can do is add a pointer to the method and than use it like shown here.