Reputation: 37136
In navigation bar I'm adding two right barButtonItems:
[self.navigationItem setRightBarButtonItems:@[firstBarButton,secondBarButton]];
Now when I click over firstBarButtonItem want to remove it. I know when I have only one UIBarButtonItem I do:
self.navigationItem.rightBarButtonItem = nil;
How do I do when the rightBarButtonItems are two?
Upvotes: 2
Views: 894
Reputation: 3940
Just set one of them:
[self.navigationItem setRightBarButtonItem:secondBarButton];
Upvotes: 5