阅读背景:

什么时候应该在Objective-C方法名称中使用“和”?

来源:互联网 

The Apple style guides for naming methods say both "Don’t use “and” to link keywords that are attributes of the receiver." and "If the method describes two separate actions, use “and” to link them." In many cases, neither of these conditions apply. For example, let's say I have a function to do some work and call a selector on a target when it is done. Should this be namedThe Apple style guides for naming methods say b




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: