codepath / ios_guides

Comprehensive open-source iOS guides

Home Page:http://guides.codepath.com/ios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Tab Bar problem

opened this issue · comments

First of all, thanks a lot for this great topic.
it was really helpful for me.
My problem concerns the buttons[previousIndex].isSelected = false
the button state keeps the selected style... At the end of my navigation, almost all my buttons have the "selected" look.
If you have any tip or solution to correct this problem, please tell me.
thanxs !

ok, i solved my problem.
it was due to the order I connected each of my button to the Outlet buttons collection.
(damned !!)
And, as the previous index var is not linked to this order but to the actual selected Index, my tab bar was just looking like a christmas tree...
note : it's important to link each button to your buttons @IBOutlet Collection in the right order (as an array).