随着大量的Xcode新手的涌入,我相信会有很多Xcode的技巧和技巧可以分享。

你的呢?


当前回答

从技术上讲,这是一个界面构建技巧,但它们是书籍匹配的一对,所以我不认为这是离题了……

Shift +右键单击其中一个控件,你会得到一个很好的对象层次结构选择列表。没有更多的点击,点击,点击,沮丧!

其他回答

放大编辑器

如果窗口同时显示细节视图和编辑器视图,则可以放大编辑器,将编辑器视图展开到窗口的全部高度。(这一点很容易发现,但很多人似乎忽略了它。)

您可以使用以下方法之一来做到这一点:

命令⌘Shift⇧E 查看>放大编辑器 拖动分隔器(在编辑器之间) 窗口和上面的文件列表) 向上。

使用类浏览器显示继承的方法

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.

在拆分窗口时按住“选项”以垂直而不是水平拆分窗口。

在项目模板中设置公司名称的另一种方法是:

在地址本中为自己添加一个联系人 将联系人中的公司字段编辑为您的公司名称 现在选择您的联系人,然后转到菜单,选择卡片->使这是我的卡片 您的联系人卡片现在应该在地址簿粗体确认这一点。

这应该会将您的公司名称添加到所有项目模板中,并为其他应用程序提供更多的自动填充信息!

alt -左&右转到行尾/开始。这与ctrl -左&右一起移动到下一个大写字母或换行字。这两个帮我省了不少时间