UITabBarController delegate methods

Discussion in 'iOS Programming' started by sujithkrishnan, May 13, 2009.

  1. sujithkrishnan macrumors 6502

    Joined:
    May 9, 2008
    Location:
    Bangalore
    #1
    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?
     
  2. deepabahua macrumors newbie

    Joined:
    Jun 3, 2009
    #2
    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
     

Share This Page