开发者

Method Name conventions

开发者 https://www.devze.com 2023-02-25 04:18 出处:网络
Is: - (void) myM开发者_如何学GoethodName; bad form, OK, or just plain wrong, compared to: - (void)myMethodName;

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

精彩评论

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