The first week of Turing ios training (using UIWebView to create a simple browser), iosuiwebview

Source: Internet
Author: User

The first week of Turing ios training (using UIWebView to create a simple browser), iosuiwebview



By giving new students the opportunity to train ios, we will bring a series of new knowledge blogs to new ios beginners, hoping to help ios enthusiasts and children's shoes who want to enter the ios field. If you pass by, please advise.

Small 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 Layout is unfriendly, so you need to remove the check mark after each project is created)




Enter the following in the search box on the toolbar:





Drag a webView to the scene:


Click the scenario configurator.





Click UIWebView and drag it to connect to ViewController. h.

Will appear




Enter the web in the Name box to associate the control with the declaration file.

Enter the following code in the ViewController. m file:



Click "run" and a simple browser will be OK.

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.