Is there a height limit to a webview? The web view will not load the entire webpage lengthwise.

Here is my code:


class ViewController: UIViewController {

    @IBOutlet var webView: UIWebView!
    override func viewDidLoad() {
        // Do any additional setup after loading the view, typically from a nib.
        let url = NSURL (string: “https//Some_URL”);
        let request = NSURLRequest(url: url! as URL);
        webView.loadRequest(request as URLRequest);
        //webView.contentMode = UIViewContentMode.scaleAspectFit;
        webView.frame = self.view.bounds;

Powered by WPeMatico

You may also like...

Comments are closed.