r/simpleios • • Jan 12 '18

WebKit help... Here is my code however for some reason it doesn't load any webpage? Just stays blank? Help.

Post image
4 Upvotes

5 comments sorted by

1

u/brianmpalma Jan 12 '18 edited Jan 12 '18

I don’t believe you can use WKWebView from IB. You’ll need to add a placeholder container UIView that you’ll then add a programmatically created WKWebView as a subview.

If you’re going to be using Auto Layout you’ll need to appropriately handle the translated auto resizing property. Or use the autoresizing mask instead, making it size appropriately with the placeholder.

1

u/surfer695 Jan 13 '18

This guy does it and it works fine but when I do it, it doesn't work??? https://www.youtube.com/watch?v=xQmZSKxOYvs

Are you saying I should use the "web view" option as opposed to using "webKit View" ?

→ More replies (1)

1

u/dov69 Jan 12 '18

so, what does your debug console say?

1

u/xauronx Jan 12 '18

Maybe your outlet isn’t hooked up or your constraints aren’t set up to fill the screen like you probably expect.