Three Hello Worlds

16

Click here to load reader

description

Joe Pezzillo - 3 Hello Worlds. Hands on Presentation. 360|iDev San Jose '09

Transcript of Three Hello Worlds

Page 1: Three Hello Worlds

3 Hello Worldsin an 3 Hours

Joe Pezzillo, Metafy LLCBoulder, Colorado USA

[email protected]://metafy.comtwitter: @metafy

Copyright © 2009 Metafy, LLC, All Rights Reserved

Page 2: Three Hello Worlds

Three Types We’ll Build

UIView

UITableView

UIWebView

Page 3: Three Hello Worlds

Bonus!

Cocoa Basics

Networking : Convenience / NSURLConnection

Persistence : NSUserDefaults /KeychainWrapper

Time Permitting: EVEN MORE!

Page 4: Three Hello Worlds

UIView

The Blank Canvas

Adding a Button (IB target/action)

Adding a UILabel, UITextField

Exploring UIControls

Page 5: Three Hello Worlds

Let’s Code!

You’ll need: iPhone SDK w/ Xcode + Interface Builder

Note: All works in Simulator

Page 6: Three Hello Worlds

UITableView

Delegate/DataSource Pattern

Populating the Rows

“Doing Something” (pop’n fresh views)

Page 7: Three Hello Worlds

Let’s Code!

You’ll need: iPhone SDK w/ Xcode + Interface Builder + Simulator

Page 8: Three Hello Worlds

UIWebView

“Browser in a Rectangle” (WebKit FTW!)

UIActivityIndicator

Using local HTML & Graphics

Page 9: Three Hello Worlds

Let’s Code!

You’ll need: iPhone SDK w/ Xcode + Interface Builder + Simulator

Page 10: Three Hello Worlds

Cocoa Basics

Quick Intro to Syntax

Common Objects: NSString, NSArray, NSDictionary

Memory Management Basics

Intro/Overview of MVC & Patterns

Page 11: Three Hello Worlds

Networking

Convenience methods

NSURLConnection

Page 12: Three Hello Worlds

Let’s Code!

You’ll need: iPhone SDK w/ Xcode + Interface Builder + Simulator

Revisit the UIWebView example with data we load using NSURLConnection

Add UIAlert in case of error

Page 13: Three Hello Worlds

Persistence

NSUserDefaults

Time Permitting: KeychainWrapper

Time Permitting: “FileSystem”

Page 14: Three Hello Worlds

Let’s Code!

You’ll need: iPhone SDK w/ Xcode + Interface Builder + Simulator

Revisit the UITableView sample and add data from storage

Page 15: Three Hello Worlds

Next Steps... “Use the Source”

Apple Gives Great Sample Code

UICatalog

TableViewSuite

ViewTransitions

SQLite Book List, SpeakHere & many more!

iPhone Recipes* (no longer available?)

Page 16: Three Hello Worlds

Please Contact Me!

Joe PezzilloMetafy [email protected]: @metafyhttp://metafy.com

Copyright © 2009 Metafy, LLC, All Rights Reserved