Skip to content

Commit dbea829

Browse files
committed
2 parents 43cf3f0 + 1329e75 commit dbea829

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ A lightweight customized tabbar view.
8888
//Create Custom Tabs
8989
let t1 = HHTabButton.init(withTitle: "Calendar", tabImage: UIImage.init(named: "Calendar")!, index: 0)
9090
t1.titleLabel?.font = tabFont
91-
t1.setBackgroundColor(color: defaultTabColor, forState: .normal)
92-
t1.setBackgroundColor(color: selectedTabColor, forState: .selected)
91+
t1.setHHTabBackgroundColor(color: defaultTabColor, forState: .normal)
92+
t1.setHHTabBackgroundColor(color: selectedTabColor, forState: .selected)
9393
9494
let t2 = HHTabButton.init(withTitle: "Refresh", tabImage: UIImage.init(named: "Refresh")!, index: 1)
9595
t2.titleLabel?.font = tabFont
96-
t2.setBackgroundColor(color: defaultTabColor, forState: .normal)
97-
t2.setBackgroundColor(color: selectedTabColor, forState: .selected)
96+
t2.setHHTabBackgroundColor(color: defaultTabColor, forState: .normal)
97+
t2.setHHTabBackgroundColor(color: selectedTabColor, forState: .selected)
9898
9999
//Note: As HHTabButton are subclassed of UIButton so you can modify it as much as possible.
100100

0 commit comments

Comments
 (0)