Switching tabs

Discussion in 'iOS Programming' started by drf1229, Jun 25, 2009.

  1. drf1229 macrumors regular

    drf1229

    Joined:
    Jun 22, 2009
    #1
    I made an app that is controlled by tabs and switches between a number of views. I am trying to make it select a tab when the user clicks a button. Is there a way to switch which tab is selected in code? Any help is appreciated.
     
  2. Luke Redpath macrumors 6502a

    Joined:
    Nov 9, 2007
    Location:
    Colchester, UK
    #2
    Have you tried reading the documentation for UITabBarController?
     
  3. drf1229 thread starter macrumors regular

    drf1229

    Joined:
    Jun 22, 2009
  4. drf1229 thread starter macrumors regular

    drf1229

    Joined:
    Jun 22, 2009
    #4
    (After attempting to read the documentation...) I never understand the documentation, but thank you for your advice. I'd just like to know a simple command that sets which tab is selected.
     
  5. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #5
    Hopefully, eventually you will become comfortable enough with the concepts that the documentation is understandable. It really is a great resource. You may not always get the help you desire in a timely enough manner from these forums, especially if the answer is clearly in the documentation. And you may appear to be constantly taking from this community without much giving back. Just a heads-up.
     
  6. Luke Redpath macrumors 6502a

    Joined:
    Nov 9, 2007
    Location:
    Colchester, UK
    #6
    No; if you can't look up such a basic thing in what is frankly decent documentation, then find another job/hobby. Getting increasingly fed up with newbies who can't be bothered to RTFM and do a bit of learning for themselves.
     
  7. drf1229 thread starter macrumors regular

    drf1229

    Joined:
    Jun 22, 2009
    #7
    Ok, jeez. I'm sorry I bothered you with a question I could have figured out myself. I'm just a beginner, and the apple documents are kind of complicated and difficult to understand to me. Sorry I bothered you!
     
  8. Luke Redpath macrumors 6502a

    Joined:
    Nov 9, 2007
    Location:
    Colchester, UK
    #8
    I'm perfectly willing and happy to help people as long as they make some kind of effort to help themselves. By your own admission you haven't even *bothered* to look at the documentation.
     
  9. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #9
    How much of a beginner are you? Are you comfortable with Objective-C and Xcode already? Have you had any previous programming experience? And have you read through the iPhone Application Programming Guide and the iPhone Human Interface Guidelines yet? Those documents are less technical but should provide you most of the basic concepts that you will want to understand.
     
  10. drf1229 thread starter macrumors regular

    drf1229

    Joined:
    Jun 22, 2009
    #10
    All I know is a few other object oriented languages (javascript, Visual Basic, Javacode, and Php), I'm sort of comfortable with Objective -C and Xcode, but I don't know that much. The documentation provided by apple confuses me. I couldn't find what I was looking for in the documentation, so I asked if anybody could simply tell me how to do what I was trying to do. I obviously didn't look hard enough in the documentation...
     
  11. drf1229 thread starter macrumors regular

    drf1229

    Joined:
    Jun 22, 2009
    #11
    By the way, I did some more googling and ended up finding what I was looking for.
     
  12. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #12
    Well, thanks for sharing the answer then. :rolleyes:
     
  13. Jeremy1026 macrumors 68020

    Jeremy1026

    Joined:
    Nov 3, 2007
    #13
    Hmm, are you lieing now, or did you lie earlier?

     

Share This Page