问题
As the title suggests, I was wondering if there is a way to force SFSafariViewController to load the desktop version of a website.
Thanks
回答1:
As of iOS 9, sadly no. Your best bet might be to create your own web view and use a different user agent as @vizllx suggests in the comments.
回答2:
You can use WKWebView and then set the customUserAgent property of the web view to any desktop browser user-agent.
来源:https://stackoverflow.com/questions/35130073/force-sfsafariviewcontroller-to-load-the-desktop-version-of-a-website