managing IB objects without iboutlets

Posted by palominoz on Stack Overflow See other posts from Stack Overflow or by palominoz
Published on 2010-06-09T13:29:15Z Indexed on 2010/06/09 13:32 UTC
Read the original article Hit count: 134

Filed under:
|
|

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?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about pointers