06-ViewControllers

06-ViewControllers - CS193P - Lecture 6 iPhone Application...

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

View Full Document Right Arrow Icon
CS193P - Lecture 6 iPhone Application Development Designing iPhone Applications Model-View-Controller (Why and How?) View 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 is due tomorrow at 11:59pm ! Questions? Presence 1 is due next Tuesday (4/28) Friday’s optional section. .. ! “Preparing Apps for the App Store” ! 200-205, 3:15PM
Background image of page 2
Announcements Online resources for auditors and iTunes U viewers ! http://groups.google.com/group/iphone-appdev-auditors ! http://cs193p.com ! Not affiliated with Stanford or Apple ! Don’t forget http://devforums.apple.com
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 Many requests for us to post assignment solutions online ! Short answer: We’re lazy ! Longer answer: There are parts of the course that we reuse from quarter to quarter, so we won’t be distributing solutions ! Discussing assignments is fine ! If you’re a Stanford student, remember the Honor Code ! We request that you don’t distribute completed assignments
Background image of page 4
Today’s Topics Designing iPhone Applications Model-View-Controller (Why and How?) View Controllers Presence 1
Background image of page 5

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

View Full DocumentRight Arrow Icon
Designing iPhone Applications
Background image of page 6
Two Flavors of Mail
Background image of page 7

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

View Full DocumentRight Arrow Icon
Organizing Content
Background image of page 8
Organizing Content Focus on your user’s data One thing at a time Screenfuls of content
Background image of page 9

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

View Full DocumentRight Arrow Icon
Patterns for Organizing Content Navigation Bar Tab Bar
Background image of page 10
Navigation Bar Hierarchy of content Drill down into greater detail
Background image of page 11

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

View Full DocumentRight Arrow Icon
Tab Bar Self-contained modes
Background image of page 12
A Screenful of Content Slice of your application Views, data, logic
Background image of page 13

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

View Full DocumentRight Arrow Icon
Model View Parts of a Screenful Controller
Background image of page 14
Parts of a Screenful Model View Controller
Background image of page 15

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

View Full DocumentRight Arrow Icon
Model-View-Controller (Why and How?)
Background image of page 16
Why Model-View-Controller? Ever used the word “spaghetti” to describe code? Clear responsibilities make things easier to maintain Avoid having one monster class that does everything
Background image of page 17

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

View Full DocumentRight Arrow Icon
Why Model-View-Controller? Separating responsibilites also leads to reusability By minimizing dependencies, you can take a model or view class you’ve already written and use it elsewhere Think of ways to write less code
Background image of page 18
Communication and MVC How should objects communicate? Which objects know about one another?
Background image of page 19

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

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

This note was uploaded on 10/29/2009 for the course CS 193D taught by Professor Staff during the Spring '08 term at Stanford.

Page1 / 54

06-ViewControllers - CS193P - Lecture 6 iPhone Application...

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

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