Web Views display web content. They can be used to load a web page, or even load and render an HTML string. This movie shows how to create and layout Web Views in Xcode 7, and how to use them to display remote web pages. The movie also explains security issues that arise when using web views, and how to grant your app the appropriate permissions to load remote data.
- [Voiceover] Let's say you want to load content from…the web or HTML content in general.…You can do that in iOS using a Web View.…You can grab a Web View from the object library…just like any other view,…and then just click and drag it onto the screen.…I'm going to make this take up the entire screen here,…so I'm dragging the handles and snapping it…to all of the edges,…and then I'm going to deselect the Web View,…select it again,…and use the keyboard shortcut to reset this…to the suggested constraints,…and that will make it fill up the entire screen,…no matter what the screen size.…
So that's all the modifier keys.…So command and then option, shift, and then equals.…Now it's very subtle, but blue lines were added…all around my Web View right here.…It's probably much easier to see on your own screen…than on my screen.…So now we need to connect this to our code.…So I'm going to option-click viewController.swift,…hide the utility area, and then right-click and drag…from the Web View into our code,…in between lines 12 and 13.…
Interested in developing for Apple Watch or Apple TV? Get a sneak peek in Chapter 9. The course wraps up with a look at the submission process for the App Store.
- Installing Xcode and the iOS SDK
- Creating a simple iOS app
- Creating a basic interaction with a button
- Choosing an object as a first responder
- Creating a user interface with Interface Builder and Auto Layout
- Working with sliders and progress bars
- Creating views to show images and web pages
- Developing responsive layouts with size classes
- Understanding the iOS architecture
- Loading data in table views
- Transitioning between views
- Developing for the iPad, Apple Watch, and Apple TV
- Submitting apps to the App Store
Skill Level Beginner
1. Prepare to Develop an iOS App
2. Core Skills
3. Basic iOS UI
4. More UI Objects
5. Size Classes
6. iOS Application Architecture
7. Table Views
8. Multiple-View Applications
9. iPad, Watch, and Apple TV Development
10. Finish and Submit to the App Store
Next steps2m 10s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.