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

networking - Vagrant-provisioned VirtualBox VM is not reachable from Ubuntu host -

c# - ASP.NET Core - There is already an object named 'AspNetRoles' in the database -

ruby on rails - ArgumentError: Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true -