Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

7. Migrating to iPad: We need more room > Use Xcode to build your Universal app

Use Xcode to build your Universal app

Since we’re looking to support Sam and keep things easier, it makes more sense to build a universal app that creates one software bundle. This isn’t too hard to implement, because when the code is cleanly separated in the MVC pattern, we just need to talk to another view.

Do this!

Upgrade your app

Highlight the project in the Navigator window and you’ll see the basic project settings. Make sure that Targets is highlighted.

Under devices, the drop-down box will let you select iPhone, iPad, or Universal. Select Universal.

image with no caption
image with no caption

Targets are used in the build process.

Xcode completes the build process based on the targets that you identify. A target keeps track of which files and the instructions of what to do with them for a build. We upgraded our target to be a universal build, so now it has everything it needs to build an app that runs on iPhones, iPod Touches, and iPads.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial