警告Sending ‘ST_CMBCSafeToolBaseViewController *const __strong’ to parameter of incompatible type 'id

原因: 你自己写了代理,设置了 delegate = self。但是self 没有遵守这个协议

@property (strong, nonatomic) id<ST_CMBCSTBcInterface> businessController;

出现警告如下图警告 Sending 'ST_CMBCSafeToolBaseViewController *const __strong' to parameter of incompatible type 'id

当然在头文件里面遵守这个实现这个协议也OK。anyway,警告消除了。

相关文章: