From 60e9cf7dc625b366c46b7af19231c7a65a17ece0 Mon Sep 17 00:00:00 2001 From: Lance Zhang Date: Wed, 4 Feb 2015 12:25:30 +0800 Subject: [PATCH] Do not set barsTintColor in case if it is not set --- SVWebViewController/SVModalWebViewController.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SVWebViewController/SVModalWebViewController.m b/SVWebViewController/SVModalWebViewController.m index 83f2337..397e9d9 100644 --- a/SVWebViewController/SVModalWebViewController.m +++ b/SVWebViewController/SVModalWebViewController.m @@ -54,7 +54,9 @@ - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:NO]; self.webViewController.title = self.title; - self.navigationBar.tintColor = self.barsTintColor; + if (self.barsTintColor) { + self.navigationBar.tintColor = self.barsTintColor; + } } #pragma mark - Delegate