Turing iOS Training first week (using UIWebView to create a simple browser)

Source: Internet
Author: User



With the opportunity to train the younger brothers to learn about iOS, we have a series of beginner knowledge Blogs for iOS novices, hoping to get help for the vast majority of iOS enthusiasts and children who want to enter the iOS field. The great God passing by please pointing.

A little exploration before class

Make a simple browser

First open Xcode and create a new project.


Open Main. Storyboard Click View Control

Remove Useauto layout and use Size Classes (the new version of Xcode auto-typesetting is very unfriendly, so every time you create a project, you have to remove the checkmark)




Next, in the search box in the toolbar, type:





Drag WebView into the scene:


Click Scene Settings





Click UIWebView to drag and drop the connection to ViewController.h

will appear




Enter the web in the name box so that the control is associated with the declaration file.

Next, enter the following code in the VIEWCONTROLLER.M file:



Click to run, so a simple browser is OK.

Turing iOS Training first week (using UIWebView to create a simple browser)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.