开发者

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

开发者 https://www.devze.com 2023-01-02 00:21 出处:网络
So if a have this property: @property (nonatomic, retain) MKReverseGeocoder *reverseGeocoder; and i want to set it, does the cas开发者_如何学编程e always change:

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

精彩评论

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