View Full Version : Need help! Connecting pages
Jul 14, 2011, 08:18 AM
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! :)
Jul 15, 2011, 03:57 AM
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
Jul 15, 2011, 06:41 AM
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!
Jul 15, 2011, 11:36 AM
...i've got some literature and stuff...
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).
Jul 15, 2011, 11:58 AM
well, its mostly internet based, apple written tutorials that i've been using. But i think i got it now. Thanks anyway!