File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -194,6 +194,8 @@ - (void)updateToolbarItems {
194194 toolbar.barStyle = self.navigationController .navigationBar .barStyle ;
195195 toolbar.tintColor = self.navigationController .navigationBar .tintColor ;
196196 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 ;
197199 }
198200
199201 else {
@@ -213,6 +215,8 @@ - (void)updateToolbarItems {
213215 self.navigationController .toolbar .tintColor = self.navigationController .navigationBar .tintColor ;
214216 self.toolbarItems = items;
215217 }
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 ;
216220}
217221
218222#pragma mark - UIWebViewDelegate
You can’t perform that action at this time.
0 commit comments