File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,8 @@ - (void)updateToolbarItems {
194
194
toolbar.barStyle = self.navigationController .navigationBar .barStyle ;
195
195
toolbar.tintColor = self.navigationController .navigationBar .tintColor ;
196
196
self.navigationItem .rightBarButtonItems = items.reverseObjectEnumerator .allObjects ;
197
+ toolbar.translucent = self.navigationController .navigationBar .translucent ;
198
+ if ([toolbar respondsToSelector: @selector (setBarTintColor: )]) toolbar.barTintColor = self.navigationController .navigationBar .barTintColor ;
197
199
}
198
200
199
201
else {
@@ -213,6 +215,8 @@ - (void)updateToolbarItems {
213
215
self.navigationController .toolbar .tintColor = self.navigationController .navigationBar .tintColor ;
214
216
self.toolbarItems = items;
215
217
}
218
+ self.navigationController .toolbar .translucent = self.navigationController .navigationBar .translucent ;
219
+ if ([self .navigationController.toolbar respondsToSelector: @selector (setBarTintColor: )]) self.navigationController .toolbar .barTintColor = self.navigationController .navigationBar .barTintColor ;
216
220
}
217
221
218
222
#pragma mark - UIWebViewDelegate
You can’t perform that action at this time.
0 commit comments