如果父类中有delegate属性,并且子类中也具有同名的属性,那么会报一下警告⚠️。解决办法:在.m文件中添加:@dynamic delegate;具体请搜索动态绑定。如下图:
关于子类和父类具有相同属性的问题

// Auto property synthesis will not synthesize property 'delegate'; it will be implemented by sit superclass,use @dynamic to acknowledge intention

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2022-12-23
  • 2021-08-26
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-07-24
  • 2021-03-30
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2021-08-24
  • 2021-06-08
相关资源
相似解决方案