它发生在iOS15/iPhone12系列设备上。
每个定时器都会寻呼多个CollectionViews,但寻呼仅在iOS15/iPhone12设备上不能正常工作。
分页卡顿,动画不能正常工作。
我尝试使用Rx实现一个计时器,但症状是相同的。
它可以在其他设备、其他iOS版本上正常运行。
有没有人遇到过和我一样的问题?
// CollectionView has the following timer code and performs timer operation independently.
// each CollectionView's paging interval is 1.0 seconds 1.3 seconds and 1.6 seconds.
func startTimer(interval: CGFloat) {
let timer1 = Timer.scheduledTimer(timeInterval: interval,
target: self,
selector: #selector(rolling1),
userInfo: nil,
repeats: true)
}
@objc func rolling1() {
DispatchQueue.main.async {
self.offset1 = CGPoint.init(x: self.offset1.x + UIScreen.main.bounds.width, y: self.offset1.y)
self.collectionView?.setContentOffset(self.offset1, animated: true)
}
}运动屏幕如下所示。
它可以在所有iOS 14设备上正常工作。
除iPhone 12系列外,它还可以在iOS15设备上正常工作。
只有iOS15上的iPhone 12系列有问题。

发布于 2021-10-29 05:52:13
已在iOS 15.1中修复感谢苹果。
https://stackoverflow.com/questions/69400634
复制相似问题