创建的UITabBar分类并声明代理协议,在声明属性delegate时报错
Property type 'id<HBTabBarDelegate>' is incompatible with type 'id<UITabBarDelegate>' inherited from 'UITabBar'
分析错误为与原来的UITabBar代理命名冲突,改为如下即可解除报错。
创建的UITabBar分类并声明代理协议,在声明属性delegate时报错
Property type 'id<HBTabBarDelegate>' is incompatible with type 'id<UITabBarDelegate>' inherited from 'UITabBar'
分析错误为与原来的UITabBar代理命名冲突,改为如下即可解除报错。