|
@@ -61,62 +61,5 @@
|
61
|
61
|
return self;
|
62
|
62
|
}
|
63
|
63
|
|
64
|
|
-- (void)applyOn:(UIViewController*)viewController {
|
65
|
|
- if (self.rightButtons || self.leftButtons) {
|
66
|
|
- _navigationButtons = [[RNNNavigationButtons alloc] initWithViewController:(RNNRootViewController*)viewController];
|
67
|
|
- [_navigationButtons applyLeftButtons:self.leftButtons rightButtons:self.rightButtons defaultLeftButtonStyle:self.leftButtonStyle defaultRightButtonStyle:self.rightButtonStyle];
|
68
|
|
- }
|
69
|
|
-
|
70
|
|
- self.rightButtons = nil;
|
71
|
|
- self.leftButtons = nil;
|
72
|
|
-}
|
73
|
|
-
|
74
|
|
-//- (void)setRightButtonColor:(NSNumber *)rightButtonColor {
|
75
|
|
-// _rightButtonColor = rightButtonColor;
|
76
|
|
-// _rightButtonStyle.color = rightButtonColor;
|
77
|
|
-//}
|
78
|
|
-//
|
79
|
|
-//- (void)setRightButtonDisabledColor:(NSNumber *)rightButtonDisabledColor {
|
80
|
|
-// _rightButtonDisabledColor = rightButtonDisabledColor;
|
81
|
|
-// _rightButtonStyle.disabledColor = rightButtonDisabledColor;
|
82
|
|
-//}
|
83
|
|
-//
|
84
|
|
-//- (void)setLeftButtonColor:(NSNumber *)leftButtonColor {
|
85
|
|
-// _leftButtonColor = leftButtonColor;
|
86
|
|
-// _leftButtonStyle.color = leftButtonColor;
|
87
|
|
-//}
|
88
|
|
-//
|
89
|
|
-//- (void)setLeftButtonDisabledColor:(NSNumber *)leftButtonDisabledColor {
|
90
|
|
-// _leftButtonDisabledColor = leftButtonDisabledColor;
|
91
|
|
-// _leftButtonStyle.disabledColor = leftButtonDisabledColor;
|
92
|
|
-//}
|
93
|
|
-
|
94
|
|
-//- (void)setRightButtons:(id)rightButtons {
|
95
|
|
-// if ([rightButtons isKindOfClass:[NSArray class]]) {
|
96
|
|
-// _rightButtons = rightButtons;
|
97
|
|
-// } else if ([rightButtons isKindOfClass:[NSDictionary class]]) {
|
98
|
|
-// if (rightButtons[@"id"]) {
|
99
|
|
-// _rightButtons = @[rightButtons];
|
100
|
|
-// } else {
|
101
|
|
-// [_rightButtonStyle mergeWith:rightButtons];
|
102
|
|
-// }
|
103
|
|
-// } else {
|
104
|
|
-// _rightButtons = rightButtons;
|
105
|
|
-// }
|
106
|
|
-//}
|
107
|
|
-//
|
108
|
|
-//- (void)setLeftButtons:(id)leftButtons {
|
109
|
|
-// if ([leftButtons isKindOfClass:[NSArray class]]) {
|
110
|
|
-// _leftButtons = leftButtons;
|
111
|
|
-// } else if ([leftButtons isKindOfClass:[NSDictionary class]]) {
|
112
|
|
-// if (leftButtons[@"id"]) {
|
113
|
|
-// _leftButtons = @[leftButtons];
|
114
|
|
-// } else {
|
115
|
|
-// [_leftButtonStyle mergeWith:leftButtons];
|
116
|
|
-// }
|
117
|
|
-// } else {
|
118
|
|
-// _leftButtons = leftButtons;
|
119
|
|
-// }
|
120
|
|
-//}
|
121
|
64
|
|
122
|
65
|
@end
|