无法在新的 Interface Builder 中放大和缩小笔尖
我是否错过了一些明显的事情,或者是否无法在 Xcode 4 的集成 Interface Builder 中自由放大和缩小打开的 nib 文件?
Have I missed something obvious or is it not possible to zoom freely in and out of an open nib file, within the integrated Interface Builder of Xcode 4?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
我一两周前提交了一份错误报告 - 简而言之,他们已经意识到了这一点。
我不会将电子邮件粘贴到此处,因为它说它处于保密协议之下。
希望有 4.0.3 或类似版本,并进行一些缩放:)
I filed a bug report a week or two ago - in short, they're aware of it.
I won't paste the email here as it said it was under NDA.
Here's hoping for 4.0.3 or similar with some zooming :)
Xcode 4.2,没有缩放功能,非常需要它。
我已经使用了操作系统缩放: - 没有更好的选择
Xcode 4.2 and no zoom and needed it badly.
I have used the OS zoom: - no better alternative
对于我们这些因为在 Xcode 6 Interface Builder 中删除了 +/- 而遇到这个问题的人来说,您可以从编辑器菜单中执行此操作,或者如果您有触控板,也可以使用捏合手势。见附件 SS。 --编辑-- 这仅适用于故事板。单个笔尖的缩放功能仍然消失。
For those of us who come upon this question because they removed the +/- in Xcode 6 Interface Builder, you can do it from the Editor menu, or if you have a trackpad, using pinch gestures works too. See attached SS. --Edit-- This is only for Storyboards. Zooming is still gone for individual nibs.
编辑:这不是答案,而是至少放大并具有更好的像素级别控制的建议。
我不知道在 Xcode 中放大/缩小的方法,但使用 Mac,您可以使用辅助功能控件进行放大。在我的 MacBook 上,我按住命令并用两根手指在触摸板上滚动以启用此功能。
EDIT: This is not an answer but a suggestion to at least zoom in and have better pixel level control.
I am unaware of a way to zoom in/out within xcode but with a mac, you can zoom in using the accessibility controls. On my MacBook, I hold command and scroll with two fingers on the touchpad to enable this feature.
我发现,如果我在创建新项目时在第二个屏幕上选中“使用 Storyboard”选项来启动项目,则 MainStoryboard.storyboard 文件将在右下角提供缩放工具。 XIB 文件仍然不可用。
I found that if I start a project with the Use Storyboard option checked on the second screen when creating a new project, the
MainStoryboard.storyboard
file will give me the zoom tool on the lower right hand corner. Still not available on the XIB file.我在 Apple 论坛中找到了一个令人满意的解决方案,来自用户 rainman50。注意:在 xcode (v6.4) 设置中无法缩放 XIB,即使您尝试按键绑定或修改按键绑定,或者使用触控板使用捏合缩放手势。这对我来说非常有效。我有一台 11 英寸 MacBook Air,在没有外部显示器的情况下进行开发真是令人抓狂。该解决方案适用于外部显示器!
“我刚刚找到了一个很好的变焦解决方法,它比以前工作得更好。
缩放默认为全屏缩放,当您有多个显示器时,它会缩放所有显示器。通常,我不需要只缩放我正在使用的一台显示器。
进入“系统偏好设置”、“辅助功能”,将缩放样式设置为“画中画”,然后单击“更多选项”,然后单击“调整大小和位置”,即可将缩放窗口设置为显示器的大小。然后,当您缩放时,仅您所在的显示器会缩放并且速度很快。
对我有用。希望也能帮助其他人。”-rainman50
I have found a satisfactory solution in the Apple forums, from user rainman50. NOTE: Zooming a XIB is NOT possible in xcode (v6.4) settings, even if you try the keybindings or modify the key bindings, or use pinch zoom gestures with your trackpad. This worked excellently for me. I have an 11" macbook air which is maddening to develop on without external displays. This solution works with external displays!
"I just found a great workaround for the zoom and it works better than before.
The zoom defaults to fullscreen zoom and when you have multiple monitors it zooms all of them. Normally I don't need to zoom all just the one monitor that I'm working on.
Go to "system preferences " ,"accessibility ", set zoom style to "picture in picture" and then click "more options" and then click "adjust size and location" then you can set the zoom window to the size of a monitor. then when you zoom only the monitor you are on gets zoomed and is fast.
Works for me. Hopefully helps others as well." -rainman50
在 Xcode 8 中,选择
Editor->Zoom
并选择所需的放大倍数。或者,如果您有触摸板,则可以使用捏合和平移手势。谢谢@matt s。In Xcode 8, select
Editor->Zoom
and choose your desired magnification. Alternatively, use pinch and pan gestures if you have a touchpad. Thanks @matt s.