开发者

Method Name conventions

Is:

- (void) myM开发者_如何学GoethodName;

bad form, OK, or just plain wrong, compared to:

- (void)myMethodName;

I see it done both ways. Same for

- (IBAction) myActionName:(id)sender;  

vs.

- (IBAction)myActionName:(id)sender;


You're talking about one space in between the closing parentheses of the return type and the method name.

This kind of thing is all a matter of personal preference.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜