Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sujithkrishnan

macrumors 6502
Original poster
May 9, 2008
265
0
Bangalore
Hi all,

My app is having 3 tabbar items.

I want the user to restrict to moving to 1st and 2nd tabs if the user is in the last view controller of 3rd tabbar item.
This is handled using deleagate method
Code:
-tabBarController: didSelectViewController

In that i am checking which view controller (actlly a navigationcontroller) is selected and if the navigationcontroller is firstNavController or secondNavController i am setting manually selectedIndex for tabBarController as 3rd tabbar.

This apporach is fine and working fine, but when i run my 2.x app in 3.0 device the screen is going white and if i am tapping again 1st or 2nd tab, the view for 3rd tab is cmng...

Has anyone encountered any similar issue?
 
soln

Hey,
I also had the same problem. I guess it is a bug of apple.
But one patch can be used till they fix it:
Assign the index value of selectedIndex in timer which is fired from didSelectViewController of tabbar. It solves the problem.

Regards,
Deepa
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.