开发者

when setting a property does the property name always change to camelcase?

So if a have this property:

@property (nonatomic, retain) MKReverseGeocoder *reverseGeocoder;

and i want to set it, does the cas开发者_如何学编程e always change:

[self setReverseGeocoder: ...

Seems a bit weird to get used to! I mean the property name is lower case!


Yes, because that's the convention for naming setters/getters for Key Value Coding

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜