Why don't I need an ivar for this Core Data property?

泪湿孤枕 提交于 2019-12-08 14:08:28

@synthesize grew the ability to automatically synthesize the associated storage in a relatively recent compiler release (actually, not so recent though the simulator initially didn't support this pattern).

@synthesize without the =<somename> part would generate an ivar with the same name as the property name. When you do =<somename>, you tell it to make an ivar with a different name.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!