Post

Replies

Boosts

Views

Activity

How to force WKWebView to show mobile version of the site on iPad?
For some reason we cannot force mobile site presentation in WKWebView on iPad. We tried different things like installing different customUserAgent on webView, or using   (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction preferences:(WKWebpagePreferences *)preferences decisionHandler:(void (^)(WKNavigationActionPolicy, WKWebpagePreferences *))decisionHandler  API_AVAILABLE(ios(13.0)){     preferences.preferredContentMode = WKContentModeMobile;     if (@available(iOS 14.0, *)) {         preferences.allowsContentJavaScript = YES;     } else {         // Fallback on earlier versions     }     decisionHandler(WKNavigationActionPolicyAllow, preferences); }  Nothing seems help and the site shows as desktop which hides all kinds on buttons on the bottom of the page. Safari displays the site perfectly as a mobile version and resizes it properly. What can I do else in order to show the site as mobile?
2
0
5.3k
Feb ’21
AVCaptureDevice devices array doesn't show apple TV
Hi,I would like to capture a screen of my Apple TV device connected to my Mac (10.11.4) via USB cable.When I choose New Movie Recording in QuickTime Player I can see and choose Apple TV as Camera & Audio input sources.When I try to do the same through[AVCaptureDevice devices]I can see only my external camera. How do I set the Apple TV as a capture session input source? What is the way to do it?Thanks,Nava
1
0
775
May ’16