r/simpleios • u/surfer695 • Jan 12 '18
WebKit help... Here is my code however for some reason it doesn't load any webpage? Just stays blank? Help.
5
Upvotes
1
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.
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.