|
@@ -7,8 +7,6 @@
|
7
|
7
|
@interface RNNNavigationButtons()
|
8
|
8
|
|
9
|
9
|
@property (weak, nonatomic) RNNRootViewController* viewController;
|
10
|
|
-@property (strong, nonatomic) NSArray* rightButtons;
|
11
|
|
-@property (strong, nonatomic) NSArray* leftButtons;
|
12
|
10
|
@property (strong, nonatomic) RNNButtonOptions* defaultLeftButtonStyle;
|
13
|
11
|
@property (strong, nonatomic) RNNButtonOptions* defaultRightButtonStyle;
|
14
|
12
|
|
|
@@ -47,13 +45,11 @@
|
47
|
45
|
}
|
48
|
46
|
|
49
|
47
|
if ([side isEqualToString:@"left"]) {
|
50
|
|
- self.leftButtons = barButtonItems;
|
51
|
|
- [self.viewController.navigationItem setLeftBarButtonItems:self.leftButtons animated:animated];
|
|
48
|
+ [self.viewController.navigationItem setLeftBarButtonItems:barButtonItems animated:animated];
|
52
|
49
|
}
|
53
|
50
|
|
54
|
51
|
if ([side isEqualToString:@"right"]) {
|
55
|
|
- self.rightButtons = barButtonItems;
|
56
|
|
- [self.viewController.navigationItem setRightBarButtonItems:self.rightButtons animated:animated];
|
|
52
|
+ [self.viewController.navigationItem setRightBarButtonItems:barButtonItems animated:animated];
|
57
|
53
|
}
|
58
|
54
|
}
|
59
|
55
|
|