警告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,警告消除了。

相关文章:

  • 2022-12-23
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案