What is the difference between option 1 and 2? I am programatically setting up buttons and would like to know what is the advantage of one over the other or if they simply produce the same just different methods of reaching the goal.
Option 1 :
[signupButton addTarget:self action:@selector(signupButton:) forControlEvents:UIControlEventTouchUpInside];
Followed by the call:
-(IBAction)signupButton:(id)sender{
AND Option 2:
[signupButton addTarget:self action:@selector(signupButtonMethod) forControlEvents:UIControlEventTouchUpInside];
Followed by the call:
-(void)signupButtonMethod {