wkwebview

How to disable iOS 11 and iOS 12 Drag & Drop in WKWebView?

一笑奈何 提交于 2020-08-25 15:00:15
问题 Long-pressing images or links in a WKWebView on iOS 11 and 12 initiates a Drag & Drop session (the user can drag the image or the link). How can I disable that? 回答1: I did find a solution that involves method swizzling but it's also possible to disable drag and drop in a WKWebView without any swizzling. Note: See special notes for iOS 12.2+ below WKContentView — a private subview of WKWebView 's WKScrollView — has an interactions property, just like any other UIView in iOS 11+. That

How to disable iOS 11 and iOS 12 Drag & Drop in WKWebView?

青春壹個敷衍的年華 提交于 2020-08-25 14:52:47
问题 Long-pressing images or links in a WKWebView on iOS 11 and 12 initiates a Drag & Drop session (the user can drag the image or the link). How can I disable that? 回答1: I did find a solution that involves method swizzling but it's also possible to disable drag and drop in a WKWebView without any swizzling. Note: See special notes for iOS 12.2+ below WKContentView — a private subview of WKWebView 's WKScrollView — has an interactions property, just like any other UIView in iOS 11+. That

How to disable iOS 11 and iOS 12 Drag & Drop in WKWebView?

感情迁移 提交于 2020-08-25 14:52:40
问题 Long-pressing images or links in a WKWebView on iOS 11 and 12 initiates a Drag & Drop session (the user can drag the image or the link). How can I disable that? 回答1: I did find a solution that involves method swizzling but it's also possible to disable drag and drop in a WKWebView without any swizzling. Note: See special notes for iOS 12.2+ below WKContentView — a private subview of WKWebView 's WKScrollView — has an interactions property, just like any other UIView in iOS 11+. That

How to disable iOS 11 and iOS 12 Drag & Drop in WKWebView?

情到浓时终转凉″ 提交于 2020-08-25 14:50:11
问题 Long-pressing images or links in a WKWebView on iOS 11 and 12 initiates a Drag & Drop session (the user can drag the image or the link). How can I disable that? 回答1: I did find a solution that involves method swizzling but it's also possible to disable drag and drop in a WKWebView without any swizzling. Note: See special notes for iOS 12.2+ below WKContentView — a private subview of WKWebView 's WKScrollView — has an interactions property, just like any other UIView in iOS 11+. That

WKWebView does not load https URL?

丶灬走出姿态 提交于 2020-08-21 08:29:40
问题 I have a WKWebView which should load the following url: https://buchung.salonmeister.de/place/#offer-details-page?id=907599&venueId=301655 Her is the code I use: import UIKit import WebKit class MMWKBrowserController: UIViewController { private let closeButtonSelector: Selector = "closeButtonTapped:" private var urlString: String private let request: NSMutableURLRequest private var webView: WKWebView! private var twoLineTitleView: UIView! private var titleLabel: UILabel? private var

WKWebview cookie issue?

試著忘記壹切 提交于 2020-08-10 19:22:30
问题 Background: I'm upgrading my app to use WKWebview from UIWebview as it will no longer be accepted by App Store The App Store will no longer accept new apps using UIWebView as of April 2020 and app updates using UIWebView as of December 2020. Issue: What happen is, I'm getting cookie return from Webview (WKWebview) after logged in. I will retrieve a token I need for API firing, however I'm constantly hitting HTTP 401 status for all the API(s) fired. If I revert back to UIWebview , and repeat

How to fix black screen in load of webview url from my own class

被刻印的时光 ゝ 提交于 2020-08-10 19:14:27
问题 I am creating one SDK to get the url from user and load. So ai m creating my own class with WKWebview . But i am getting few issues about Instance member webView cannot be used on type MyWebView(UIview) My code : import Foundation import WebKit public class MyWebView: UIView, WKNavigationDelegate { // initialize the view var webView: WKWebView! // get the url and load the page public func passUrl(url: String) { guard let url = URL(string: url) else { return } webView = WKWebView() webView

How to remove UIWebView component completely in current project?

走远了吗. 提交于 2020-08-08 12:32:07
问题 when submitting my latest build, Apple has a response with this warning. ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs . See https://developer.apple.com/documentation/uikit/uiwebview for more information. Fyi, I already migrate all UIWebView component to the WKWebView component in my project based on Apple recommendation. I tried grep -r UIWebView . and grep -r UIWebView /Path/To/Project/* to cleared all UIWeview in Project. but Apple