managing IB objects without iboutlets
- by palominoz
i have got 24 buttons in my project.I need to manage them but I don't want to get my MainViewController polluted by 24 declarations of pointers, properties & synthesizes.
i was thinking about using buttonPushed functions and do it like:
-(IBAction)buttonPushed:(id)sender{
UIbutton *button=sender;
[buttons addObjectAtIndex:[sender tag]];
}
my question is:is sender a pointer to the IBObject?