gpt4 book ai didi

xcode5 - Xcode : How to refactor/rename method and ADD (or REMOVE) its PARAMETERS?

转载 作者:行者123 更新时间:2023-12-03 01:45:16 26 4
gpt4 key购买 nike

Xcode 5 能够更改方法的签名吗?据我所知,不,但我希望被证明是错误的。

如果我尝试添加(或删除)方法的参数,我会受到 Needs 1 less (more) colon to match original 错误的欢迎。

在这种情况下我真的必须进行手动重构吗?

最佳答案

用冒号标记第一个方法名称(“startRequest:”),然后单击“Refactor”->“Rename”

示例:

- (void)startRequest:(NSString *)url with:(NSDictionary *)post

http://developer.apple.com/library/ios/#recipes/xcode_help-source_editor/RefactorRenaming/RefactorRenaming.html

关于xcode5 - Xcode : How to refactor/rename method and ADD (or REMOVE) its PARAMETERS?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14987347/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com