You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@edparsons if you want to do it by your self, you can do this on the viewDidLoad method
UserDefaults.standard.register(defaults:["UserAgent":"Mozilla/5.0 (iPad; U; CPU iPhone OS 5_1_1 like Mac OS X; en_US) AppleWebKit (KHTML, like Gecko) Mobile [FBAN/FBForIPhone;FBAV/4.1.1;FBBV/4110.0;FBDV/iPad2,1;FBMD/iPad;FBSN/iPhone OS;FBSV/5.1.1;FBSS/1; FBCR/;FBID/tablet;FBLC/en_US;FBSF/1.0]"])
the result should be something similiar to:
overridefunc viewDidLoad(){
super.viewDidLoad()// Do any additional setup after loading the view, typically from a nib.UserDefaults.standard.register(defaults:["UserAgent":"Mozilla/5.0 (iPad; U; CPU iPhone OS 5_1_1 like Mac OS X; en_US) AppleWebKit (KHTML, like Gecko) Mobile [FBAN/FBForIPhone;FBAV/4.1.1;FBBV/4110.0;FBDV/iPad2,1;FBMD/iPad;FBSN/iPhone OS;FBSV/5.1.1;FBSS/1; FBCR/;FBID/tablet;FBLC/en_US;FBSF/1.0]"])
myWebView.scalesPageToFit = true
myWebView.contentMode =UIViewContentMode.scaleAspectFit
myWebView.delegate =selfloadURLWithString(URLString:"http://google.com")}
No description provided.
The text was updated successfully, but these errors were encountered: