Objective-C iPhone Programming Lesson 3 - Multiple Views

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,568
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 27, 2010

I show you multiple viewcontrollers.

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (macheads101)

  • Hey everything works perfectly, 1 problem is that my 'Done' button fails to return to the Main View.

    I tried another method removing from SuperView but all I get is a black screen.

    :( Any advice

  • @nthringwoodbulls On iOS 5.0 and later, you have to replace self.parentViewController with self.presentingViewController

  • Everything's fine until i create the next view. it's giving me all kinds of errors saying that NextView cannot use 'super' because it is the root class. I'm using Xcode for Lion

  • @brolly990 You have to make sure that you create a View Controller, not a regular view or object. Other than that, I might suggest re-installing Xcode. It may be that your installation is faulty.

  • @macheads101 i hope it's not my install. But i'm thinking it might just be that i'm working with a different UI (because it's lion) and i tried following your steps to the T. I right click (if you've used the most recent lion version of Xcode) the main 'Multiple View Controller' bar under the 'show project navigator' tab and say 'new file..'. There it asks me to type what it is a sub class of, then to name it. Something must be wrong

  • @brolly990 In the new file dialog, make sure that you have View Controller selected under iOS > Cocoa Touch. Where it says "Subclass of: ...", just leave UIViewController as the subclass, and hit next.

see all

All Comments (56)

Sign In or Sign Up now to post a comment!
  • @exam lol should of finished watching the video

  • @macheads101 so you #import header of the NextViewController?

  • I also can't seem to get to see any of the views when I run and build. It does not show up. Even though nothing is connected it should at least show right?

  • Can anyone please help me! When I try to drag the button to go to the next screen it won't seem to do it. I tried dragging it over and over and nothing happens. But when I drag the file's owner to the button it gives me an option. Not the options that is needed. Is there any code your suppose to just know before putting the same exact code you are?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more