Resolved how to access child controllers of a UITabBarController?

Discussion in 'iOS Programming' started by Tex-Twil, Jul 29, 2012.

  1. Tex-Twil, Jul 29, 2012
    Last edited: Jul 30, 2012

    Tex-Twil macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
    #1
    Hi,
    I have a UITabBarController which has more that 5 elements. I need to set programatically a property to view controllers of all tabs. When there are more than 5 tabs, the 5th childViewController is the UIMoreNavigationController and I don't know how the access my own 5th, 6th .. view controllers.

    How am I supposed to do that?

    cheers
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    What stops you using the viewContollers property to get all the view controllers?
     
  3. Tex-Twil thread starter macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
    #3
    that was my mistake. I was using the childViewControllers but I should have used the viewControllers property.

    thanks.
     
  4. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #4
    Super :) You could set the thread to resolved if that's it fixed :)
     
  5. Tex-Twil thread starter macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
    #5
    how? :p I didn't know macrumors had this feature.
     
  6. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #6
  7. Tex-Twil thread starter macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
  8. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #8
    Are you saying you've never read the Stickies at the top of this very forum? Shame on you! ;)
     

Share This Page