xcode 如何显示“该”助理编辑器?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5624972/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 20:47:27  来源:igfitidea点击:

How to display "the" Assistant Editor?

xcode

提问by user4951

https://web.archive.org/web/20110604185120/http://developer.apple.com/library/ios/documentation/iphone/conceptual/iPhone101/Articles/05_ConfiguringView.html

https://web.archive.org/web/20110604185120/http://developer.apple.com/library/ios/documentation/iphone/conceptual/iPhone101/Articles/05_ConfiguringView.html

To add an action for the button . . .

  1. In Xcode, select the view controller's nib file (MyViewController.xib).
  2. Display the Assistant editor.
  3. Make sure Assistant displays the view controller's header file (MyViewController.h).
  4. Control drag from the button in the nib file to the method declaration area in the header file.

为按钮添加动作。. .

  1. 在 Xcode 中,选择视图控制器的 nib 文件 (MyViewController.xib)。
  2. 显示助手编辑器。
  3. 确保助手显示视图控制器的头文件 (MyViewController.h)。
  4. 控制从nib文件中的按钮拖拽到头文件中的方法声明区。

How to do step 2?

怎么做第2步?

How to display "the" Assistant Editor?

如何显示“该”助理编辑器?

回答by David

It's exclusive to Xcode 4:

它是 Xcode 4 独有的:

assistant editor

助理编辑

回答by Pavan

In Xcode 6

在 Xcode 6 中

enter image description here

在此处输入图片说明

It is the second button with two circles.

它是带有两个圆圈的第二个按钮。

回答by jdero

EDIT: As of the latest version of Xcode this has changed.

编辑:从最新版本的 Xcode 开始,这已经改变了。

In XCode 6.2 it seems they've changed the icons again. I was having trouble finding it but I didn't realize where the buttons were until the dumb old me trying to pick up iOS thought I was missing a view, so here I am posting this for any passerby who needs some visual confirmation.

在 XCode 6.2 中,他们似乎再次更改了图标。我很难找到它,但直到愚蠢的老我试图拿起 iOS 以为我错过了一个视图,我才意识到按钮在哪里,所以我在这里张贴这个给任何需要视觉确认的路人。

To be fair, I was looking for something based of some instructions I had read that referenced the two circles, and it didn't occur to me that two circles meant a split view / assistant editor, and not until after finding this post and figuring it out did I realize a suit was a reference to a butler AKA assistant :D

公平地说,我正在寻找基于我读过的一些说明的东西,这些说明引用了两个圆圈,我没有想到两个圆圈意味着一个拆分视图/助理编辑器,直到找到这篇文章并计算结果我意识到西装是对管家AKA助理的参考:D

xcode 6.2 assistant editor

xcode 6.2 助理编辑器