Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-02-2009, 09:40 AM   #1 (permalink)
Cyclops Ducky
Registered Member
 
Join Date: Sep 2009
Posts: 3
Cyclops Ducky is on a distinguished road
Default 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.
Cyclops Ducky is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,180
Threads: 93,920
Posts: 402,153
Top Poster: BrianSlick (7,967)
Welcome to our newest member, mausumi
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:02 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.