1. Auto property synthesis will not synthesize property 'title'; it will be implemented by its superclass, use @dynamic to acknowledge intention
这是说编译器自动给属性delegate合成getter和setter的时候将会在它的父类上实现,也就是说其父类也有一个delegate属性,现在它不知道到底是哪一个delegate.
这不是我们想要的,所以添加 @dynamic或者@synthesize告诉编译器这个属性是动态的,动态的意思是等你编译的时候就知道了它只在本类合成;
解决方案:按照提示我们可以像下边这样写就可以了
本文解释了在Objective-C中遇到AutoPropertySynthesis错误时的原因,并提供了如何通过使用@dynamic或@synthesize来解决这个问题的方法。
463

被折叠的 条评论
为什么被折叠?



