On iOS 8, the below code works fine, it can scroll with more inertia.
webView.scrollView.decelerationRate = UIScrollViewDecelerationRateNormal;
As for iOS 9 beta 3, this code is meaningless, even without an error.
Is this a bug or are there any other ways around?
Note: UIWebView's scroll rate can be changed two types on both versions.
Update: this has been fixed but not deployed in iOS 9.3 (see workaround below). More detail here:
I had the same issue and it seems to be a bug in iOS 9.
The workaround is to set it in the will begin dragging delegate instead of at the time of instantiation:
- (void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {
scrollView.decelerationRate = UIScrollViewDecelerationRateNormal;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With