Итак, я просто обновился до новых Xcode8
и Swift3
, но теперь мой веб-просмотр не работает. Вот код, который я использовал:
UIWebView.loadRequest(webView)(NSURLRequest(URL: NSURL(string: "http://hardwirestudios.com")!))
Теперь мне дают две ошибки:
"NSURL" неявно конвертируется в "URL"; вы хотели использовать "как" для явного преобразования? "NSURLRequest" неявно конвертируется в "URLRequest"; вы хотели использовать 'as' для явного преобразования?