Building a Universal App for iOS 5

Universal App Screenshot

This sample Xcode project provides a basic template for building a universal app in iOS 5.

Some of the features demonstrated in this project are:

  • Storyboard – All the views are constructed using Storyboards instead of the previous NIB formats. This allows us to conveniently manage the transitions for each view in one place.
  • Automatic Reference Counting (ARC) – With ARC we no longer need to tediously release allocated objects. All memory management code will be automatically inserted by the compiler.
  • Model-View-Controller (MVC) – By structuring our app according to the MVC design pattern, both the iPhone and iPad devices share the same Model layer. The only changes will be isolated to the View and Controller layer.
  • Create separate view controller subclasses for iPhone and iPad devices. This is much easier than inserting if ... else checks everywhere in the code.

Get the source code from GitHub: https://github.com/TCLee/BountyHunter

Advertisements