Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS 10.3.1 webview的scrollerview位置有问题 #272

Open
DogTwoChen opened this issue May 11, 2018 · 2 comments
Open

iOS 10.3.1 webview的scrollerview位置有问题 #272

DogTwoChen opened this issue May 11, 2018 · 2 comments

Comments

@DogTwoChen
Copy link

DogTwoChen commented May 11, 2018

2018-05-11 5 13 16

通过修改
if (@available(iOS 10, *)) {
        
        _wkWebView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
        
        _wkWebView.scrollView.scrollIndicatorInsets = _wkWebView.scrollView.contentInset;
        
    }

后解决

@AAChartModel
Copy link
Owner

你是说scrollview这个位置问题是苹果的一个 bug 吗?

@DogTwoChen
Copy link
Author

嗯,系统在11以下的,都会有这个问题,在webview那边判断一下就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants