Automatically @synthesized properties in Xcode 4.4

房东的猫 提交于 2019-12-17 18:46:05

问题


From the Xcode 4.4 release notes:

The compiler automatically calls @synthesize by default for unimplemented @properties

What exactly does the new default synthesizer look like? Does it create a variable of the same name as the property (or does it prefix it with an underscore, which seems to be a good practice, but required extra typing so far)?


回答1:


the default is @synthesize propertyName = _propertyName



来源:https://stackoverflow.com/questions/11666008/automatically-synthesized-properties-in-xcode-4-4

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