随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
当前回答
选择一个文本块并使用
Command + '/'
注释掉该文本块。选择注释块,并使用相同的快捷方式取消注释。
其他回答
一些技巧可以在Xcode Tools tips中找到。
使用类浏览器显示继承的方法
Apple's API reference documentation does not show methods inherited from a superclass. Sometimes, though. it's useful to be able to see the full range of functionality available for a class -- including a custom class of your own. You can use the Class Browser (from the Project menu) to display a flat or hierarchical list of all the classes related to a current project. The upper pane on the right hand side of the browser window shows a list of methods associated with the object selected in the browser. You can use the Configure Options sheet to select "Show Inherited Members" to show inherited methods as well as those defined by the selected class itself. You click the small book symbol to go to the corresponding documentation.
右键单击任何单词并选择“在API参考中查找所选文本”以搜索该单词的API。如果您需要查找类的可用属性和/或方法,这是非常有用的。而不是前往Apple.com或谷歌,你会得到一个弹出窗口,你正在寻找什么(或什么是找到的)。
代码自动完成
使用AppKiDo浏览文档。
在Xcode中使用Accessorizer来完成一堆单调、重复的任务。