Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upupdate for iOS 14 #97
Conversation
|
为什么是subView.count-1?
|
我在上面列举了 iOS 13 和 iOS 14 上 subviews 的数组格式 |
|
不好意思,看到了,这个视图结构怎么这么奇怪。 |
|
或者你提供一下层级截图,提前更新上去吧 |
mrtian2016
commented
Sep 2, 2020
|
模拟器可以复现这个问题,我有同样的问题 但是 复制laurivers 的代码并没有解决 我在laurivers的代码前加了一句
|
|
你们俩提供一下视图层级截图给我,我处理一下,这个问题在iOS正式版发布之前更新。 |
mrtian2016
commented
Sep 2, 2020
|
给我看到数组即可,不要可视化。 |
mrtian2016
commented
Sep 2, 2020
|
了解了,就说contentView并不固定存在subViews的最后一个,但是systemBackgroundView一定是第一个。 |
mrtian2016
commented
Sep 2, 2020
|
contentView应该是最后一个 因为cell上的按钮无效 需要contentView.isUserInteractionEnabled = false |
|
这两个视图不打算采用Index过滤,根据class类型过滤比较安全。 |
现在我是用的 _UISystemBackgroundView 类型来过滤的,但是不确定会不会影响上架。 |
不会,这个不影响。 |
|
@laurivers 更改为class类型过滤,测试好重新pull给我,这个由你来负责完善吧,麻烦啦~ |
|
@mrtian2016 老哥,麻烦同步下这个case的最新进展,目前我的机器有点限制,没有14.0的环境。 |
mrtian2016
commented
Sep 5, 2020
|
要不麻烦你更新到你的 fork 上 然后提 pr |
mrtian2016
commented
Sep 5, 2020
|
提了 你看一下 |
songxing10000
commented
Sep 18, 2020
|
2.4.7已修复 |






laurivers commentedJul 24, 2020
iOS 14 UITableViewCell 的 subviews 有了较大变化
结果是在 iOS 14 上会跳过 _UISystemBackgroundView, 但是把 UITableViewContentView 也画出骨架来.
因为 iOS 14 还未正式发布, 这里目前基于 beta 3 做了简单的 workaround. 直接判断如果是
_UISystemBackgroundView这个类就直接跳过, 不确定是否影响上架, 需要后续跟进