Xcode 4.4中的@synthesized属性自动 [英] Automatically @synthesized properties in Xcode 4.4
本文介绍了Xcode 4.4中的@synthesized属性自动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
从Xcode 4.4发行说明中:
From the Xcode 4.4 release notes:
默认情况下,编译器会自动为未实现的@properties调用@synthesize
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)?
推荐答案
默认值为@synthesize propertyName = _propertyName
这篇关于Xcode 4.4中的@synthesized属性自动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文