|
|
|
|
4
|
@implementation RNNBackButtonOptions
|
4
|
@implementation RNNBackButtonOptions
|
5
|
|
5
|
|
6
|
- (void)applyOn:(UIViewController *)viewController {
|
6
|
- (void)applyOn:(UIViewController *)viewController {
|
|
|
7
|
+ if (self.showTitle && ![self.showTitle boolValue]) {
|
|
|
8
|
+ self.title = @"";
|
|
|
9
|
+ }
|
|
|
10
|
+
|
7
|
if (self.icon) {
|
11
|
if (self.icon) {
|
8
|
UIImage *image = self.tintedIcon;
|
12
|
UIImage *image = self.tintedIcon;
|
9
|
[viewController.navigationController.navigationBar setBackIndicatorImage:[UIImage new]];
|
13
|
[viewController.navigationController.navigationBar setBackIndicatorImage:[UIImage new]];
|
|
|
|
|
23
|
if (self.visible) {
|
27
|
if (self.visible) {
|
24
|
viewController.navigationItem.hidesBackButton = ![self.visible boolValue];
|
28
|
viewController.navigationItem.hidesBackButton = ![self.visible boolValue];
|
25
|
}
|
29
|
}
|
26
|
-
|
|
|
27
|
- if (self.showTitle && ![self.showTitle boolValue]) {
|
|
|
28
|
- self.title = @"";
|
|
|
29
|
- }
|
|
|
30
|
}
|
30
|
}
|
31
|
|
31
|
|
32
|
- (void)setBackItem:(UIBarButtonItem *)backItem onViewController:(UIViewController *)viewController {
|
32
|
- (void)setBackItem:(UIBarButtonItem *)backItem onViewController:(UIViewController *)viewController {
|