ios - Enable landscape orientation in didFinish function WKWebView -


i'm big noob when comes swift , ios app implementation.

so im trying , not sure if possible.

so created wkwebview , added uiimage , progressview viewdidload() function. once webiste finishes loading remove both views in didfinish function. once didfinish called able enable screen rotate, not force enable it. if user in landscape website can used in landscape.

in general created loader screen wkwebview , want in portrait mode once site loaded flexible change portrait landscape normal.

thanks in advance

in function "supportedinterfaceorientations", can return required orientation after checking whether webview loading or not. then, after webview finished loading , device in landscape, should change orientation programmatically (how programmatically set device orientation in ios7?)


Comments

Popular posts from this blog

html - How to set bootstrap input responsive width? -

javascript - Highchart x and y axes data from json -

javascript - Get js console.log as python variable in QWebView pyqt -