Creating a subview

Discussion in 'iOS Programming' started by JavaWizKid, Jun 23, 2009.

  1. JavaWizKid macrumors 6502a

    Joined:
    Sep 18, 2008
    #1
    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.
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    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.
     
  3. JavaWizKid thread starter macrumors 6502a

    Joined:
    Sep 18, 2008
    #3
    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.
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    presentModalViewController. That should get you pointed.
     
  5. JavaWizKid thread starter macrumors 6502a

    Joined:
    Sep 18, 2008
    #5
    It's not basic! The guy in this video even says himself!!! Here
     
  6. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #6
    The topic is covered in Chapter 6 (of 17) in the "Beginning iPhone Development" book. To me, that's basic.
     
  7. boyplunder macrumors regular

    boyplunder

    Joined:
    Sep 8, 2008
    Location:
    UK
    #7
    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
     
  8. Luke Redpath macrumors 6502a

    Joined:
    Nov 9, 2007
    Location:
    Colchester, UK
    #8
    Surely not for a Java Wiz Kid?
     

Share This Page