O'Reilly logo

The Complete Idiot's Guide® To iPad and iPhone App Development by Troy Brant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Browser App

An app this simple deserves a simple name. The Browser app will have only one view, a UIWebView, that will load a web page of your choosing. Over the course of the chapter, you will add more functionality, but for now, you get to start with something easy.

Interface Challenge

To get started, follow these steps:
1. Create a new View-based Application and name it “Browser.”
2. Open BrowserViewController.xib, and set the background color to white.
3. Add a web view using the Library > Cocoa Touch > Data Views filter in the library window. Position it so it takes up the entire view.
4. With the web view selected, check Scale Page to Fit in the Attributes tab of the inspector window. By default, the web page is rendered without any ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required