Skip to content

Commit b35c2ec

Browse files
committed
Applied shahruz's pull request 91, TransitApp#91
1 parent 5ca7d79 commit b35c2ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

SVWebViewController/SVWebViewController.m

+4
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)