From b35c2ec83c37319f9a2bb1f769af4f8a6d8acbdc Mon Sep 17 00:00:00 2001 From: Simon Strandgaard Date: Sat, 27 Sep 2014 08:17:39 +0200 Subject: [PATCH] Applied shahruz's pull request 91, https://github.com/TransitApp/SVWebViewController/pull/91 --- SVWebViewController/SVWebViewController.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SVWebViewController/SVWebViewController.m b/SVWebViewController/SVWebViewController.m index 97c9ef5..14b1aad 100644 --- a/SVWebViewController/SVWebViewController.m +++ b/SVWebViewController/SVWebViewController.m @@ -194,6 +194,8 @@ - (void)updateToolbarItems { toolbar.barStyle = self.navigationController.navigationBar.barStyle; toolbar.tintColor = self.navigationController.navigationBar.tintColor; self.navigationItem.rightBarButtonItems = items.reverseObjectEnumerator.allObjects; + toolbar.translucent = self.navigationController.navigationBar.translucent; + if ([toolbar respondsToSelector:@selector(setBarTintColor:)]) toolbar.barTintColor = self.navigationController.navigationBar.barTintColor; } else { @@ -213,6 +215,8 @@ - (void)updateToolbarItems { self.navigationController.toolbar.tintColor = self.navigationController.navigationBar.tintColor; self.toolbarItems = items; } + self.navigationController.toolbar.translucent = self.navigationController.navigationBar.translucent; + if ([self.navigationController.toolbar respondsToSelector:@selector(setBarTintColor:)]) self.navigationController.toolbar.barTintColor = self.navigationController.navigationBar.barTintColor; } #pragma mark - UIWebViewDelegate