随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
当前回答
Xcode中的类浏览器!通过按shift +⌘+ c实现。您可以缩小范围,仅显示您的活动项目。只要您只想浏览类层次结构,它就会为您提供一个不那么混乱的视图。
其他回答
使用类浏览器显示继承的方法
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.
从技术上讲,这是一个界面构建技巧,但它们是书籍匹配的一对,所以我不认为这是离题了……
Shift +右键单击其中一个控件,你会得到一个很好的对象层次结构选择列表。没有更多的点击,点击,点击,沮丧!
双击方括号或圆括号,可获得括号与圆括号匹配。
我最喜欢的是这些常用的编辑器快捷方式:
⌘+ 0将您从调试模式返回到编辑器。 ⌘+ Shift + R带您从调试模式到编辑器视图(项目模式) ⌘+ Shift + E“最大化”编辑器(当你有构建结果等显示在编辑器上方时,这非常有用,你只是想让你的源编辑器更高) Ctrl + 2显示当前代码的大纲 ⌘+ Return运行应用程序 ⌘+ Shift + Return结束应用程序
在PyObjC中,你可以为符号下拉列表做类似的#pragma标记:
#马克:Foo
and
#马克:-