Rename addNavBarButtons to setNavBarButtons

This commit is contained in:
yannick
2015-12-02 08:32:39 +01:00
parent 5993012c65
commit cc0d42b2fc
2 changed files with 6 additions and 6 deletions
@@ -50,7 +50,7 @@
@implementation RoomParticipantsViewController
- (void)addNavBarButtons
- (void)setNavBarButtons
{
// this viewController can be displayed
// 1- with a "standard" push mode
@@ -117,14 +117,14 @@
// ensure that the separator line is not displayed
self.tableView.separatorColor = [UIColor clearColor];
[self addNavBarButtons];
[self setNavBarButtons];
}
// this method is called when the viewcontroller is displayed inside another one.
- (void)didMoveToParentViewController:(nullable UIViewController *)parent
{
[super didMoveToParentViewController:parent];
[self addNavBarButtons];
[self setNavBarButtons];
}
- (void)didReceiveMemoryWarning
@@ -64,7 +64,7 @@
return topViewController.navigationItem;
}
- (void)addNavBarButtons
- (void)setNavBarButtons
{
[self getNavigationItem].rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemDone target:self action:@selector(onSave:)];
[self getNavigationItem].rightBarButtonItem.enabled = ([self getUpdatedItemsDict].count != 0);
@@ -85,7 +85,7 @@
// Setup `RoomSettingsViewController` properties
self.rageShakeManager = [RageShakeManager sharedManager];
[self addNavBarButtons];
[self setNavBarButtons];
}
- (void)viewWillAppear:(BOOL)animated
@@ -107,7 +107,7 @@
- (void)didMoveToParentViewController:(nullable UIViewController *)parent
{
[super didMoveToParentViewController:parent];
[self addNavBarButtons];
[self setNavBarButtons];
}
- (void)destroy