如何实现-自动生成设置器? [英] How to implement this - generate setter automatically?
本文介绍了如何实现-自动生成设置器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Standford CS 193P 2013-2014秋季课程7中,讲师展示以下内容。但是我无法在Xcode 6中复制该mysef。有人知道吗? (.gif也可以在此处看到)
In Standford CS 193P 2013-2014 Fall lecture 7, the instructor shows the following thing. But I can't reproduce that mysef in Xcode 6. Anybody knows that? (.gif can also be seen here)
推荐答案
这是代码段。
您可以在XCode中创建自己的代码段。
You can create your own code snippet in XCode.
- 在XCode中键入模板代码
- 将其复制并拖动到实用工具面板中的注释部分
- 提供标题和完成快捷方式
- 每当键入快捷方式时,XCode都会显示自动完成选项
- Type the template code in XCode
- Copy it and drag it to the comment section in the Utility panel
- Give a title and completion shortcut
- Whenever you type the shortcut, XCode will show the auto-completion option
这篇关于如何实现-自动生成设置器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文