Set focus to Tab bar item

Discussion in 'iOS Programming' started by oceandrive, Mar 24, 2009.

  1. oceandrive macrumors newbie

    Joined:
    Nov 17, 2008
    #1
    Can someone please guide me how to do this.

    1) Four items on the tab bar
    2) Onload the focus is set the first item
    3) If the user selects certain option on this view, I need to set the focus to third Tab bar item for the user to continue.

    Thanks for the help.
     
  2. oceandrive thread starter macrumors newbie

    Joined:
    Nov 17, 2008
    #2
    got the solution
    HelloWorldAppDelegate *theDelegate = (HelloWorldAppDelegate*)[[UIApplication sharedApplication] delegate];
    tabController = theDelegate.tabBarController;
    tabController.selectedIndex = 1;
     

Share This Page