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)