When I change controller’s self.title, tab title also changes to that string.
Is it any workaround to avoid it?
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.
From the documentation of
UITabBarController:So you can either instantiate your own
UITabBarItemand assign it to the view controller’stabBarItemproperty.Or simply just add a new property to your
UIViewControllerthat can store the string:And then use that property instead:
self.myTitle = @"Your title here";