Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
335 views
in Technique[技术] by (71.8m points)

objective c - Automatically @synthesized properties in Xcode 4.4

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)?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

the default is @synthesize propertyName = _propertyName


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...