Viewing pages in Safari


show more Viewing pages in Safari provides you with in-depth training on Developer. Taught by Bill Weinman as part of the iOS SDK and SQLite: Building Data-Driven Apps (2013) show less
please wait ...

Viewing pages in Safari

Now, we have a working webView and we'd like to be able to pass pages off to Safari as a full-featured mobile web browser. Let's see how we do that. We'll navigate here to Chapter 6 of our exercise files, and we're going to make a working copy of our webView-02. I'm using the -done version. You can use the version that you created if you've been following along with the exercises. I'm going to rename that to -03 and open it up in Xcode by double-clicking on the Xcode project file here in the project folder.

So, I'm going to minimize that and come back up here to our actionButton method. And this our actionButton that gets called whenever we press that button. It has an NSLog right now. So, if I run this in the iPhone Simulator, and I'll bring up a page here, and you'll notice when I press this button, instead of launching Safari, it just displays this log message that says the URL that's been called.

And so I'll come back here in Xcode. I'...

Viewing pages in Safari
Video duration: 3m 7s 3h 45m Intermediate

Viewers:

Viewing pages in Safari provides you with in-depth training on Developer. Taught by Bill Weinman as part of the iOS SDK and SQLite: Building Data-Driven Apps (2013)

Subject:
Developer
Software:
iOS
Author:
please wait ...