1、私有KVC
iOS不允许valueForKey、setValue: forKey获取和设置私有属性。
解决方案:需要使用其它方式修改
2、TabBar的UITabBarSwappableImageView
遍历UITabBarButton的subViews发现只有在TabBar选中状态下才能取到UITabBarSwappableImageView。
解决方案:修改为通过UITabBarButton的位置来设置红点的frame
3、present
iOS13中默认的present方式变成了从下往上推出而且带有交互手势,在iOS13之前 modalPresentationStyle 一直默认为:
UIModalPresentatioFullScreen = 0
在 iOS13bate 中 modalPresentationStyle 的类型新增了以下类型:
UIModalPresentationAutomatic = -2
官方有对此有以下描述
Use this value when you want to use the system's recommended presentation style. For most view controllers, UIKit maps this style to the UIModalPresentationPageSheet style, but some system view controllers may map to a different style.
如果你想使用系统推荐的演示样式就使用此值,对于绝大部分视图控制器,UIKit将此值映射到UIModalPresentationPageSheet,但也有一些系统视图控制器会映射到不同样式
目前的解决方案: 手动指定ViewController的 modalPresentationStyle