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

快速浏览图片右问题 #5

Closed
cwxatlm opened this issue Jul 24, 2017 · 1 comment
Closed

快速浏览图片右问题 #5

cwxatlm opened this issue Jul 24, 2017 · 1 comment

Comments

@cwxatlm
Copy link

cwxatlm commented Jul 24, 2017

进入大图浏览模式时,你点击一下图片然后快速左右移动一下图片就会crash

断点定位崩溃

LLBrowserViewController.swift line: 367

解决: 要先判断indexPath
if let indexPath = collectView?.indexPath(for: cell) {
NotificationCenter.default.removeObserver(self, name: NSNotification.Name.UIDeviceOrientationDidChange, object: nil)
...
把单机退出浏览模式的相关代码放里面
}

@LvJianfeng
Copy link
Owner

LvJianfeng commented Jul 24, 2017

@cwxatlm 感谢指出错误,一会将更新CocoaPods,谢谢

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