I have a UINavigationController
with a UITableViewController
which has and two UIBarButtonItem
s:
- (void)viewDidLoad {
[super viewDidLoad];
self.navigationItem.leftBarButtonItem = self.editButtonItem;
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(showSubscribeSheet:)];
self.navigationController.navigationBar.tintColor = [UIColor brownColor];
}
I want to hide self.navigationItem.rightBarButtonItem
when the UITableView
is in edit mode. What way can I do this? Thanks.
I do not use nibs.