mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-22 15:42:10 +02:00
Rename addNavBarButtons to setNavBarButtons
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user