若是父类中有delegate属性,而且子类中也具备同名的属性,那么会报一下警告⚠️。解决办法:在.m文件中添加:@dynamic delegate;具体请搜索动态绑定。以下图:blog
// Auto property synthesis will not synthesize property 'delegate'; it will be implemented by sit superclass,use @dynamic to acknowledge intentionit