I use UITabBarController for iOS app. it has 3 tabs. For example tab1 (current tab), tab2 and tab3. I want put a small red badge on tab3 icon when click a button on tab1. Is there any way to add it?
Share
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.
UITabBarItems have a badgeValue property. You can set this when your delegate method gets fired.
You can get the TabBarItem #3 from the tabBarController with