iOS报错:Property type 'id' is incompatible with type 'id _Nullable' inherited from 'UITabBar'

如图:

Property type 'id<tabBarDelegate>' is incompatible with type 'id<UITabBarDelegate> _Nullable' inherited from 'UITabBar'

可能原因:由于自定义tabBar,没有继承系统UITabBarDelegate造成的

解决办法:

第一步:

Property type 'id<tabBarDelegate>' is incompatible with type 'id<UITabBarDelegate> _Nullable' inherited from 'UITabBar'

第二步:

Property type 'id<tabBarDelegate>' is incompatible with type 'id<UITabBarDelegate> _Nullable' inherited from 'UITabBar'

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-08-23
  • 2021-07-31
  • 2021-08-10
  • 2022-01-21
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2022-12-23
  • 2022-12-23
  • 2021-05-23
相关资源
相似解决方案