Мой веб-просмотр не отображается. (Только пустая белая страница) У меня есть TabBarController и два ViewControllers. Один из них, содержащий веб-просмотр.iOS Swift Webview не отображается
Мой код:
import Foundation
import UIKit
class HomeViewController: UIViewController, UIWebViewDelegate {
@IBOutlet var webView: UIWebView!
var urlpath: String = "http://www.google.de"
func loadAddressURL(){
let requesturl = NSURL(string: urlpath)
let request = NSURLRequest(URL: requesturl!)
webView.loadRequest(request)
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
loadAddressURL()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
Что здесь не так?
Вы пробовали https? – Putz1103
да, у меня есть и та же проблема – simplesystems