随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。
你的呢?
当前回答
自动完成键盘快捷键
选项卡⇥或控制⌃/:选择下一个自动完成参数。
Shift: Tab⇥或Shift: Control⌃/:选择之前的自动完成参数。
Escape⎋:显示自动完成弹出列表。
其他回答
代码自动完成
自动完成键盘快捷键
选项卡⇥或控制⌃/:选择下一个自动完成参数。
Shift: Tab⇥或Shift: Control⌃/:选择之前的自动完成参数。
Escape⎋:显示自动完成弹出列表。
使用类浏览器显示继承的方法
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.
可能不需要多说,但是如果你想使用字内导航,确保你改变了空格的预设键(在Expose & Spaces首选项窗格中),如果你使用它。
我切换空格使用Ctrl-Option左/右。
编辑:要将空格设置为Ctrl-Option左/右,选择“在空格之间切换:”弹出并按住Option键。第一项将从Ctrl方向键更改为Ctrl- option方向键。
链接一个新的框架
(在Groups and Files窗格中,打开Targets披露三角形以显示与项目相关的目标。)
在Groups and Files窗格中,双击当前项目目标以显示target Info面板。 在Info面板中,选择General选项卡。下方窗格显示当前链接的框架。 通过按面板左下角的+按钮,并从出现的工作表中显示的列表中选择,添加一个新框架。(重要的是,表格中的列表只显示了与目标相关的框架…)
(这在两年前是不可用的,但是值得指出的是,比起在文件系统中找到框架并将其拖放到项目中,它可以节省大量的时间……)