07-NavigationTabBarControllers

07-NavigationTabBarControllers - CS193P - Lecture 7 iPhone...

Info iconThis preview shows pages 1–14. Sign up to view the full content.

View Full Document Right Arrow Icon
CS193P - Lecture 7 iPhone Application Development Navigation & Tab Bar Controllers
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Announcements Assignment 3 was due last night at 11:59 PM Presence 1 is due on Tuesday 4/28
Background image of page 2
Announcements Next Monday, 4/27 ! Table Views, Scroll Views and Presence 2 ! Guest speaker: Jason Beaver, UIKit Engineer
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Announcements This Friday: “Preparing Your App for the App Store” Next Friday: Loren Brichter of Tweetie (http://www.atebits.com )
Background image of page 4
Today’s Topics Navigation Controllers Application Data Flow Customizing Navigation Tab Bar Controllers Combining Approaches
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Navigation Controllers
Background image of page 6
UINavigationController Stack of view controllers Navigation bar View Controller View Controller View Controller Navigation Controller
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
How It Fits Together Top view controller’s view
Background image of page 8
How It Fits Together Top view controller’s view Top view controller’s title
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
How It Fits Together Top view controller’s view Top view controller’s title Previous view controller’s title
Background image of page 10
Modifying the Navigation Stack Push to add a view controller Pop to remove a view controller - (void) pushViewController :(UIViewController *)viewController animated :(BOOL)animated; - (void) popViewControllerAnimated :(BOOL)animated;
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Pushing Your First View Controller - (void)applicationDidFinishLaunching // Create a navigation controller navController = [[UINavigationController alloc] init]; } // Push the first view controller on the stack [navController pushViewController:firstViewController animated: NO ]; // Add the navigation controller’s view to the window [window addSubview:navController.view];
Background image of page 12
In Response to User Actions Push from within a view controller on the stack Almost never call pop directly! ! Automatically invoked by the back button
Background image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 14
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 52

07-NavigationTabBarControllers - CS193P - Lecture 7 iPhone...

This preview shows document pages 1 - 14. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online