I have a tabbar on my main window. Each individual tab item has its own view. How can enable/disable other tab items from another tab item view?
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.
I guess u want to change the settings of the objects u have in other tab. U can achieve this using NSUserDefaults or by passing the value to the view where u want to change the settings.
Consider an example where u want to disable a button in another tab from the current tab view. Just set an NSUserDefaults to a certain value and assign it to a key. U can access the value u set for the particular key in another view again by using NSUserDefaults. U can check whether the value is what u set in viewWillAppear method of the other tab view. And based on that condition u can enable or disable the controls. Hope this helps.