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

版本1.6.0 使用图片PageControl,在iOS 13正常,在iOS 14不显示 #86

Open
maguoxi opened this issue Oct 12, 2020 · 6 comments

Comments

@maguoxi
Copy link

maguoxi commented Oct 12, 2020

lazy var cycleScrollView: LLCycleScrollView = {
let cycleScrollView = LLCycleScrollView()
cycleScrollView.imageViewContentMode = .scaleAspectFill
cycleScrollView.scrollDirection = .horizontal
cycleScrollView.customPageControlStyle = .image
cycleScrollView.pageControlPosition = .center
cycleScrollView.pageControlActiveImage = UIImage(named: "banner_unselect")
cycleScrollView.pageControlInActiveImage = UIImage(named: "banner_selected_black")
cycleScrollView.placeHolderImage = UIImage(named: "banner_placeholder")
return cycleScrollView
}()
iOS 13
iOS 14

@Liaoworking
Copy link

我的pageControl在iOS14上也显示异常。

@Liaoworking
Copy link

刚刚看了看原因是之前是遍历的pageControl的subViews来布局image的frame。 iOS14 pageControl的视图层级发生了改变 增加了contentView 和indicatorContentView。 所以布局会有问题。

@maguoxi
Copy link
Author

maguoxi commented Oct 19, 2020

刚刚看了看原因是之前是遍历的pageControl的subViews来布局image的frame。 iOS14 pageControl的视图层级发生了改变 增加了contentView 和indicatorContentView。 所以布局会有问题。

好的,谢谢答疑

@lixuan123
Copy link

大神,要怎么改才能解决呢?才初学,不会改

@lixuan123
Copy link

@Liaoworking @maguoxi 大神,要怎么改才能解决呢?才初学,不会改

@Liaoworking
Copy link

@Liaoworking @maguoxi 大神,要怎么改才能解决呢?才初学,不会改

https://www.cnblogs.com/4zjq/archive/2020/11/25/14034333.html 这里有个帖子你可以看看

我打算自己自定义pageControl了。

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

3 participants