From 4d0a3f7ff4d053db51f278019772333c66e9a2aa Mon Sep 17 00:00:00 2001 From: Matthew Strickland Date: Mon, 18 Nov 2013 10:28:41 -0500 Subject: [PATCH] Set the toolbar's barTintColor based on the navigation bar. --- SVWebViewController/SVWebViewController.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/SVWebViewController/SVWebViewController.m b/SVWebViewController/SVWebViewController.m index 2e08ebc..54dc9bc 100644 --- a/SVWebViewController/SVWebViewController.m +++ b/SVWebViewController/SVWebViewController.m @@ -200,6 +200,7 @@ - (void)updateToolbarItems { toolbar.items = items; toolbar.barStyle = self.navigationController.navigationBar.barStyle; toolbar.tintColor = self.navigationController.navigationBar.tintColor; + toolbar.barTintColor = self.navigationController.navigationBar.barTintColor; self.navigationItem.rightBarButtonItems = items.reverseObjectEnumerator.allObjects; } @@ -218,6 +219,7 @@ - (void)updateToolbarItems { self.navigationController.toolbar.barStyle = self.navigationController.navigationBar.barStyle; self.navigationController.toolbar.tintColor = self.navigationController.navigationBar.tintColor; + self.navigationController.toolbar.barTintColor = self.navigationController.navigationBar.barTintColor; self.toolbarItems = items; } }