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

JXPhotoBrowserImageCell 上的imageView想添加控件,用snapkit布局,会导致一直走layoutSubviews的死循环,有朋友碰到过吗 #198

Open
luhaisheng opened this issue Jan 26, 2021 · 2 comments

Comments

@luhaisheng
Copy link

No description provided.

@JiongXing
Copy link
Owner

snapkit我没有测试过兼容性。可以发一下用snapkit的相关代码吗?我后须看看怎么优化

@luhaisheng
Copy link
Author

snapkit我没有测试过兼容性。可以发一下用snapkit的相关代码吗?我后须看看怎么优化

JXPhotoBrowserImageCell 这个类里面 的imageView用自定义的UIImageView,在上面随便addsubview,用snapkti布局就出问题,直接写frame的话没问题

var imageView: PostImageView = {
    let view = PostImageView(loadType: .postPicBigImage)
    view.clipsToBounds = true
    return view
}()

// var imageView: UIImageView = {
// let view = UIImageView()
// view.clipsToBounds = true
// return view
// }()

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