7 04 2017
Swift : WebView 사용방법
Loading Local HTML to WebView
1 2 3 4 5 6 7 8 9 10 11 12 13 |
override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. //getting local file let localHtmlFile = NSBundle.mainBundle().URLForResource("index", withExtension: "html"); //creating request let request = NSURLRequest(URL: localHtmlFile!); //loading request webView.loadRequest(request); } |
Swift : 다양한 팁 XCode 구버젼을 IOS10.3에서 컴파일 및 배포시 변경내용