I have UITabBarController having 5 tabbar buttons. On some activity I want to unhighlight all the tab bat items.
Can anyone help please?
Thank you,
Ankita
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First of all, I’d like to say that unselecting all tabbaritems is a bad user experience. Chances are high that it won’t be accepted into the appstore.
After I said that, I found the answere here. You can accept this answer (if it works!!!) but props should be given to that user. He used a trick in Key Value Observing, and used the following code:
He added the following note:
EDIT: this is for adapting the Apple-UITabbar. You can also create a custom UITabbar.