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造成的

解决办法:

第一步:

第二步:

posted @ 2016-01-07 09:29  J_mailbox  阅读(1375)  评论(0编辑  收藏  举报