Quick Answer: How Do I Open Webview in iOS Swift?
Contents How Do I Open webView in Swift? in Swift 4 or 4.2 You Can Use Like: Add Wkwebview & Connect to You View Comtroller. Your View Is Like Bellow: Import...
Contents
How do I open webView in Swift?
In Swift 4 or 4.2 You can use like:
- Add WKWebView & connect to you view comtroller.
- Your view is like bellow: import UIKit import WebKit class ViewController: UIViewController { @IBOutlet weak var wkwebview: WKWebView!
How do I use webView in Xcode?
Let’s dive in!
- Step 1: Create a new View Controller. Go to Xcode and create a new file>Cocoa touch Class>Subclass of UIViewController — Call it WebViewController and press “Next” & “Create”
- Step 2: Import the framework & Delegate. …
- Step 3: Load the view. …
- Step 4: Present the Web View. …
- Step 5: Run your app!