I have 3 buttons at the bottom of my view controller, btn1 btn2 btn3, I\'m using them instead of the tab bar as it is not possible to entirely customize a tab bar as per my requ
Here's what I did:
Set the other 2 buttons to not selected
- (IBAction)buttonPressed:(id)sender
{
NSArray* buttons = [NSArray arrayWithObjects:btn1, btn2, btn3, nil];
for (UIButton* button in buttons) {
if (button == sender) {
button.selected = YES;
}
else {
button.selected = NO;
}
}
}
Hope this helps.
Cheers!