+1  A: 

If your touch up inside action on those buttons go to the same ibaction method call, you can set the tag value of each button to something unique in code or interface builder then judge the senders value but adding :(id)sender like

  • (IBAction) viewImageList:(id)sender{ if([sender isKindOfClass:[UIButton class]]){ uIButton btn =(UIButton)sender; switch(btn.tag){ ...
AtomRiot
+2  A: 

Your IBAction should receive a pointer to the sender of the event: (IBAction)viewImageList:(id)sender You can either inspect the tag property of the sender, or keep an array of the buttons and compare the identity of the sender to the identities of the buttons in the array to see where the click originated.

warrenm