WebView with some problems in swift

0

I have 1 problem

Simple code:

let url = "http://apple.com"


override func viewDidLoad() {
super.viewDidLoad()

let requestURL = NSURL(string:url)
let request = NSURLRequest(URL: requestURL!)
webView.loadRequest(request)
}

This webview is not loading the responsive site, it loads normal with a horrible zoom, does anyone know why?

    
asked by anonymous 06.01.2015 / 01:55

1 answer

0

Make sure your UIWebView is the size you need to show the content. One suggestion is to create NSLayoutConstraints to work on all devices.

    
13.01.2015 / 19:58