From 1329e75ae8905608c71f6ffeeb868b37cbf272a8 Mon Sep 17 00:00:00 2001 From: Hemang Date: Thu, 26 Oct 2017 12:06:39 +0530 Subject: [PATCH] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 9212477..9eadbd6 100644 --- a/README.md +++ b/README.md @@ -88,13 +88,13 @@ A lightweight customized tabbar view. //Create Custom Tabs let t1 = HHTabButton.init(withTitle: "Calendar", tabImage: UIImage.init(named: "Calendar")!, index: 0) t1.titleLabel?.font = tabFont - t1.setBackgroundColor(color: defaultTabColor, forState: .normal) - t1.setBackgroundColor(color: selectedTabColor, forState: .selected) + t1.setHHTabBackgroundColor(color: defaultTabColor, forState: .normal) + t1.setHHTabBackgroundColor(color: selectedTabColor, forState: .selected) let t2 = HHTabButton.init(withTitle: "Refresh", tabImage: UIImage.init(named: "Refresh")!, index: 1) t2.titleLabel?.font = tabFont - t2.setBackgroundColor(color: defaultTabColor, forState: .normal) - t2.setBackgroundColor(color: selectedTabColor, forState: .selected) + t2.setHHTabBackgroundColor(color: defaultTabColor, forState: .normal) + t2.setHHTabBackgroundColor(color: selectedTabColor, forState: .selected) //Note: As HHTabButton are subclassed of UIButton so you can modify it as much as possible.