Need help! Connecting pages

Discussion in 'iOS Programming' started by simonfagerstrom, Jul 14, 2011.

  1. macrumors newbie

    Joined:
    Jul 14, 2011
    #1
    Hi!

    Well i've just started learning Xcode, i've got some literature and stuff that can help me but there is one thing that I can't seem to find help with! How do you connect a page to a button. For example button "1" in the main window with window 1! I've got no clue and it would be great if someone could tell me how to do it! :)
    Skärmavbild 2011-07-14 kl. 14.13.41.png
     
  2. macrumors 65816

    jnoxx

    Joined:
    Dec 29, 2010
    Location:
    Aartselaar // Antwerp // Belgium
    #2
    Have u tried looking through a basic iPhone book?
    Every "page", is a new Controller with a NIB, that's what I think u want at least.
    So you need to create 4 pages, or 4x the same. and connect actions to the buttons, that will create a new instance of this controller/nib. Then when u click it, it will push it onto the existing view. It's called a Navigation Controller, I suggest you read up to some basics
     
  3. thread starter macrumors newbie

    Joined:
    Jul 14, 2011
    #3
    okay

    okay! Well i knew the stuff about the nib files. But what is the actual coding for switching pages? Sorry i'm a newbie on this area and ill go and get me a book as fast as i can!
     
  4. Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    What "literature and stuff"? Please be specific. If we know what resources you are using to learn, we can better tailor our answers (or suggest better resources, perhaps).
     
  5. thread starter macrumors newbie

    Joined:
    Jul 14, 2011
    #5
    well, its mostly internet based, apple written tutorials that i've been using. But i think i got it now. Thanks anyway!
     

Share This Page