Hide Multiple UIButton in single button click
I have 5 buttons in my xib, Button 1 to 4 is mapped to
-(IBAction)btn1to4:(UIButton *)sender; Button 5 is mapped to
-(IBAction)btnFive:(id)sender;
Initially all the 4 buttons are hidden and only button 5 is visible, What
I need is when I click on Button 5 all the 4 buttons should appear and
when I click again on Button 5 they should disappear. For individual
button I can write code in Button 5 as button1.hidden=NO,
button2.hidden=NO and soon. But my buttons 1 to 4 are mapped to single
btn1to4 method. How should I code in my btnFive method to hide/Unhide all
4 buttons at once?
No comments:
Post a Comment