Skip to content

sinasaurus/Programming-iOS-Book-Examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The downloadable code and screenshots for my book, "Programming iOS 5: Fundamentals of iPhone, iPad, and iPod touch Development," published by O'Reilly in March 2012, have now been moved off to the subfolder iOS5bookExamples.

At the top level, I've revised the examples to fit iOS 6.

While I'm drafting the revised book, the full text of the draft is available here: http://www.apeth.com/iOSBook/ At present, you can read the draft for Programming iOS 6 for chapters 1 through 19. (Other chapters are still the old iOS 5 edition.) You can tell from the warning at the top of a page if it hasn't been revised yet.

Changes include:

  • Use new literals and subscripting for arrays, dictionaries, numbers.

  • Use autosynthesis of properties.

  • Move protocol adoption declarations to implementation file where possible.

  • Use constraints (instead of frame) to position and size subviews, whenever this is relational (and doesn't get in the way of the example).

  • Illustrate some newly available CIFilters.

  • Illustrate new UIView/UIGestureRecognizer interaction.

  • Illustrate new rotation rules, including new structure of launch-into-rotation.

  • For table views, use exclusively new register-and-dequeue architecture.

New examples include:

  • Further illustrate use of constraints (ch 14), esp. in company with animation (ch 17).

  • Show gesture recognizers in nib (ch 18).

  • Show new rotation/orientation rules (ch 19).

  • Show new state save-and-restore (ch 19).

  • Show new storyboard features: container controller, Exit (unwind).

  • Show collection views.

  • Show basic Core Data usage (ch 36).

  • Other new iOS 6 features as they arise.

This list is not exhaustive by any means. If you really want to know everything that I've changed, clone to your computer and do a diff against commit 25644891 (that's when I started this rounded of revision).

Matt Neuburg

About

Downloadable code examples for my book, "Programming iOS 5".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published