Property type 'id<tabBarDelegate>' is incompatible with type 'id<UITabBarDelegate> _Nullable' inherited from 'UITabBar'
iOS报错:Property type 'id' is incompatible with type 'id _Nullable' inherited from 'UITabBar'
如图:

可能原因:由于自定义tabBar,没有继承系统UITabBarDelegate造成的
解决办法:
第一步:

第二步:


浙公网安备 33010602011771号