ios - xcode如何自动补全接口中定义的未实现方法?
PHP中文网
PHP中文网 2017-04-17 13:06:55
0
2
295

xcode怎样自动补全头文件中未实现的方法啊?每次都要手动再输入一遍么?
例如eclipse对于接口定义的方法,在实现类里会警告提示你必须实现,你直接双击警告的图标就能帮你补一个方法体了。难道Xcode没有这种功能,都要再人肉输入一遍?
============2014年07月21日更新==================
发现xcode确实没有像eclipse这样的功能,只能自己输入-/+,然后通过提示来补全。

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(2)
Ty80

Xcode has the functionality you mentioned.
The method is declared in the .h file

-(void)firstFunction;

When implementing a method in a .m file, enter
First you can see auto-completion.

:)

PHPzhong

I have also been having a headache with this problem. But nowAppCodepart of my problems have been solved.

I copy all the methods that need to be implemented from .h to the .m file at once, and then implement them one by one.

Because I have experienced the powerful functions of Intelij Idea, I know that AppCode is certainly equally powerful in terms of convenience in code editing, so now I use it in combination with Xcode and AppCode.

AppCode uses the versatile Ctrl+Enter to automatically implement all methods.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template