4.2.1 Switching Views PART 1 Switching & Creating XIB files - XCode iphone sdk

Loading...

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

Uploaded by on Feb 23, 2011

This demo shows how, create an XIB and a view controller then flip between to views. PART 2 shows how to add a transition effect to the switching.

Download Source files
http://www.garrahan.org/iphone_class_week4.php

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:
see all

All Comments (23)

Sign In or Sign Up now to post a comment!
  • good tutorial you got a clear voice

  • @DoctaMacn101 Were do you place that code?

  • @jaylopezkni I would use the single-view based application, it has all the necessary documents to do this.

  • @ptplatypus1 what template did you end up using? I'm having the same problem...

  • -.- my stupid Xcode dosnt have this beginning templates! its 4.2.1 and well geez i hate it!!!!

  • if i have 6 different uiviewcontrollers, how do i go back to the main one? thanks a lot

  • @ak0mplis

    yes, someone helped me out. he said that the new ios changed some things in the API and heres the code that worked

    -(IBAction)back:(id)sender;{ if ([self respondsToSelector:@selector(d­ismissViewControllerAnimated:c­ompletion:)]) {  NSLog(@"didTouchDoneButton 5.x"); [self dismissViewControllerAnimated:­NO completion:nil]; } else { NSLog(@"didTouchDoneButton 4.x"); [self dismissModalViewControllerAnim­ated:NO]; }

    }

  • @DoctaMacn101 Were you able to resolve the error you were getting? I am getting the same error and am unable to resolve. thanks in advance.

  • Sí me sirvió demasiado tu video. Sencillo y claro. Muchas gracias.

  • @MrGarrahan I had the same problem with the Go Back button not working in Xcode 4.2 I used storyboard for my first view instead of a xib file because 4.2 doesn't start you out with a xib file for view controller..im confused ):

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