View Full Version : Creating a subview
JavaWizKid
Jun 23, 2009, 04:07 PM
How can I do this? I've created a main menu for my game in the Interface Builder and hooked up the classes and button actions. I want the start game button to make a subview appear with the game contents on. How can I create this subview and implement it into my app. Thanks.
dejo
Jun 23, 2009, 04:54 PM
This is pretty basic iPhone SDK stuff you're asking for. Perhaps it's time to step away from the real coding and review the fundamentals before continuing.
JavaWizKid
Jun 23, 2009, 05:07 PM
I haven't been reading Apple's Documentation because I found it complicated. I've been watching videos and reading other documents o learn how to program with Xcode. Trial and error is my best way of learning and I haven't came across how to do this. Please point me in the right direction thanks.
dejo
Jun 23, 2009, 05:35 PM
Please point me in the right direction thanks.
presentModalViewController. That should get you pointed.
JavaWizKid
Jun 23, 2009, 06:10 PM
It's not basic! The guy in this video even says himself!!! Here (http://vimeo.com/1450817)
dejo
Jun 23, 2009, 06:22 PM
It's not basic!
The topic is covered in Chapter 6 (of 17) in the "Beginning iPhone Development" book. To me, that's basic.
boyplunder
Jun 24, 2009, 02:42 AM
The topic is covered in Chapter 6 (of 17) in the "Beginning iPhone Development" book. To me, that's basic.
JavaWizKid, Walk first, run later!
I may well have started lower down the evolutionary scale than you, but that was 7 months ago and a lot of hard work.
I found the following example very useful in illustrating how multiple views work and how to add them. Try adding a separate 'about' view to this example code using the 'info' button on the tabbar. That should get you in the right place. If you can't, go and read the book Dejo suggests.
http://www.iphonesdkarticles.com/2008/09/navigation-controller-uitoolbar.html
Luke Redpath
Jun 24, 2009, 04:53 AM
I haven't been reading Apple's Documentation because I found it complicated.
Surely not for a Java Wiz Kid?
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.