美文网首页
@dynamic说明

@dynamic说明

作者: 思考的小妮子 | 来源:发表于2017-06-26 16:37 被阅读4次

查阅了一些资料确定@dynamic的意思是告诉编译器,属性的获取与赋值方法由用户自己实现,不自动生成。

@dynamic just tells the compiler that the getter and setter methodsare implemented not by the class itself but somewhere else (like the superclass) @dynamic只是告诉编译器,getter和setter方法不是由类本身而是其他地方实现的(比如超类)

相关文章

网友评论

      本文标题:@dynamic说明

      本文链接:https://www.haomeiwen.com/subject/tjrfcxtx.html