Unable to disable wkwebview's scrolling in iOS 13 beta

I want to disable wkwebview's scrolling like this "WKWebView.scrollView.scrollEnabled = NO", but it is not working in iOS13 Beta.



here is my code:

- (WKWebView *)webView{

if (_webView == nil) {

WKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init];

_webView = [[WKWebView alloc] initWithFrame:self.view.bounds configuration:configuration];

_webView.scrollView.scrollEnabled = NO;

_webView.navigationDelegate = self;

}


return _webView;

}

the same issue.

Same. Happen to uitableview too. buggy ios 13.

try it!


- (void)xxx_setScrollEnabled_NO(UIView *)view {

if ([view respondsToSelector:@selector(setScrollEnabled:)]) {

[view performSelector:@selector(setScrollEnabled:) withObject:@(NO)];

}

for (UIView *subview in view.subviews) {

[self xxx_setScrollEnabled_NO:subview];

}

}

Unable to disable wkwebview's scrolling in iOS 13 beta
 
 
Q