如何在Xcode中自动实现协议方法?

时间:2021-09-11 09:27:50

When I was programming on eclipse, I remember that there was an option to auto implement interface methods (first implement the interface in the class and then implements methods right mouse clicking in the class body). Is there any similar option for to auto implement protocol methods in Xcode? I think that could be a cool features, saving lots of time... Thanks a lot to everyone that have any "solutions" to my trouble.

当我在eclipse上编程时,我记得有一个自动实现接口方法的选项(首先在类中实现接口,然后在类主体中实现鼠标右键单击的方法)。在Xcode中有自动实现协议方法的类似选项吗?我认为这是一个很酷的功能,可以节省很多时间。非常感谢所有对我的麻烦有任何“解决方案”的人。

1 个解决方案

#1


1  

Not the same as Eclipse but you can take advantage of XCode Code Snippets feature once configured ... see https://github.com/burczyk/XcodeSwiftSnippets http://nshipster.com/xcode-snippets/ to get examples on how to

与Eclipse不一样,但是您可以利用XCode代码片段功能,一旦配置好了……请参阅https://github.com/burczyk/XcodeSwiftSnippets http://nshipster.com/xcode-snippets/以获得示例

#1


1  

Not the same as Eclipse but you can take advantage of XCode Code Snippets feature once configured ... see https://github.com/burczyk/XcodeSwiftSnippets http://nshipster.com/xcode-snippets/ to get examples on how to

与Eclipse不一样,但是您可以利用XCode代码片段功能,一旦配置好了……请参阅https://github.com/burczyk/XcodeSwiftSnippets http://nshipster.com/xcode-snippets/以获得示例