Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

simonfagerstrom

macrumors newbie
Original poster
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
 
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
 
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!
 
well, its mostly internet based, apple written tutorials that i've been using. But i think i got it now. Thanks anyway!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.