Getting the tab bar selectedIndex
I'm new to object oriented programming and I'm stuck on something that seems like it should be simple.
I have a project with a tab bar controller that is defined as an IBOutlet instance variable in the app delegate class. The tab bar controller has 2 tabs that call the same view controller. This is because my application has 2 tabs that will have all the same stuff on the screen, but the text will be slightly different. In order to accomplish this my view controller class has to have knowledge of what tab is selected. I know that the tab bar controller has a selectedIndex variable that I need to use, but my problem is how to access this from the view controller class.
|