-
Notifications
You must be signed in to change notification settings - Fork 369
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
KVO 监听崩溃 #85
Labels
question
Further information is requested
Comments
你用新版本试一下呢? if contentScrollView?.bounds.size.width == 0 {
// 如果contentScrollView Frame为零,直接忽略
return
}
var progress = contentOffset.x/contentScrollView!.bounds.size.width
if Int(progress) > itemDataSource.count - 1 || progress < 0 {
//超过了边界,不需要处理
return
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个地方有时候会崩溃 contentScrollView!.bounds.size.width 可能 == 0
The text was updated successfully, but these errors were encountered: