XCode Swift에서 WebView를 이용해 인터넷 창을 띄우는 실습이다. 프로젝트를 생성한 다음 WebView object를 추가한다. 검은색 투평한 창이 생기는데 화면에 맞게 늘려주고 위, 아래, 양 옆에 제약조건을 추가해 준다. 그리고 클래스를 연결하고 컨트롤을 누르고 웹뷰를 클래스에 넣어준다. 코드는 아래와 같다. import UIKit import WebKit class ViewController: UIViewController { @IBOutlet weak var WebviewMain: WKWebView! override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. let urlString = "https://www.google.com" if let url = URL(string: urlString) { let urlReq = URLRequest(ur...
#swift
#webview
#xcode
#예제
#웹뷰
원문링크 : swift WebView 웹뷰 예제 ,Could not instantiate class named WKWebView because no class named WKWe