|
@@ -36,12 +36,9 @@ const NSInteger BLUR_TOPBAR_TAG = 78264802;
|
36
|
36
|
|
37
|
37
|
- (void)rnn_setNavigationBarNoBorder:(BOOL)noBorder {
|
38
|
38
|
if (noBorder) {
|
39
|
|
- self.navigationBar
|
40
|
|
- .shadowImage = [[UIImage alloc] init];
|
41
|
|
- [self.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
|
|
39
|
+ [self.navigationBar setShadowImage:[[UIImage alloc] init]];
|
42
|
40
|
} else {
|
43
|
|
- self.navigationBar
|
44
|
|
- .shadowImage = nil;
|
|
41
|
+ [self.navigationBar setShadowImage:nil];
|
45
|
42
|
}
|
46
|
43
|
}
|
47
|
44
|
|
|
@@ -114,7 +111,7 @@ const NSInteger BLUR_TOPBAR_TAG = 78264802;
|
114
|
111
|
|
115
|
112
|
backItem.title = title ? title : lastViewControllerInStack.navigationItem.title;
|
116
|
113
|
backItem.tintColor = color;
|
117
|
|
-
|
|
114
|
+
|
118
|
115
|
lastViewControllerInStack.navigationItem.backBarButtonItem = backItem;
|
119
|
116
|
}
|
120
|
117
|
|