Property type 'id' is incompatible with type 'id _Nullable' inherited
iOS声明自定义delegate是报警告,类似:Propertytype'id'isincompatiblewithtype'id_Nullable'inheritedfrom'UIScrollView'image.png通常原因是:由于自定义tabBar,没有继承系统UITabBarDelegate造成的解决办法修改点1将自定义delegate自称自系统的代理image.png修改点2image