Created a new project from the Tab Bar Application template, how can I access tabBarController (which is declared in AppDelegate) from FirstViewController? I’d like to read some attributes in the tabBarController from the view controller. Thanks!
Created a new project from the Tab Bar Application template, how can I access
Share
You can always access the app delegate as follows:
So you should be able to get at the tabBarController by doing this:
Now refer to delegate.tabBarController.
[In the above, MyAppDelegate is whatever name you gave the class of your app delegate.]