|
@@ -16,6 +16,7 @@ extern const NSInteger BLUR_TOPBAR_TAG;
|
16
|
16
|
- (instancetype)initWithDict:(NSDictionary *)dict {
|
17
|
17
|
self = [super initWithDict:dict];
|
18
|
18
|
self.title = [RNNTitleOptions new];
|
|
19
|
+
|
19
|
20
|
return self;
|
20
|
21
|
}
|
21
|
22
|
|
|
@@ -42,16 +43,16 @@ extern const NSInteger BLUR_TOPBAR_TAG;
|
42
|
43
|
}
|
43
|
44
|
}
|
44
|
45
|
|
45
|
|
-
|
46
|
|
-
|
47
|
|
-
|
48
|
|
-
|
49
|
46
|
if (self.visible) {
|
50
|
47
|
[viewController.navigationController setNavigationBarHidden:![self.visible boolValue] animated:[self.animate boolValue]];
|
|
48
|
+ } else {
|
|
49
|
+ [viewController.navigationController setNavigationBarHidden:NO animated:NO];
|
51
|
50
|
}
|
52
|
51
|
|
53
|
52
|
if (self.hideOnScroll) {
|
54
|
53
|
viewController.navigationController.hidesBarsOnSwipe = [self.hideOnScroll boolValue];
|
|
54
|
+ } else {
|
|
55
|
+ viewController.navigationController.hidesBarsOnSwipe = NO;
|
55
|
56
|
}
|
56
|
57
|
|
57
|
58
|
if (self.buttonColor) {
|
|
@@ -112,6 +113,8 @@ extern const NSInteger BLUR_TOPBAR_TAG;
|
112
|
113
|
|
113
|
114
|
if (self.translucent) {
|
114
|
115
|
viewController.navigationController.navigationBar.translucent = [self.translucent boolValue];
|
|
116
|
+ } else {
|
|
117
|
+ viewController.navigationController.navigationBar.translucent = YES;
|
115
|
118
|
}
|
116
|
119
|
|
117
|
120
|
if (self.drawBehind) {
|
|
@@ -120,6 +123,8 @@ extern const NSInteger BLUR_TOPBAR_TAG;
|
120
|
123
|
} else {
|
121
|
124
|
viewController.edgesForExtendedLayout &= ~UIRectEdgeTop;
|
122
|
125
|
}
|
|
126
|
+ } else {
|
|
127
|
+ viewController.edgesForExtendedLayout = UIRectEdgeAll;
|
123
|
128
|
}
|
124
|
129
|
|
125
|
130
|
if (self.noBorder) {
|