xcode 无法在新的界面生成器中放大和缩小笔尖
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6136624/
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
Cannot zoom in and out of nib in the new Interface Builder
提问by Luke
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?
我是否遗漏了一些明显的内容,或者无法在 Xcode 4 的集成界面生成器中自由放大和缩小打开的 nib 文件?
采纳答案by Luke
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.
我不会在这里粘贴电子邮件,因为它说它在 NDA 之下。
Here's hoping for 4.0.3 or similar with some zooming :)
这是希望 4.0.3 或类似的一些缩放:)
回答by Luke
Xcode 4.2 and no zoom and needed it badly. I have used the OS zoom: - no better alternative
Xcode 4.2 没有缩放功能,非常需要它。我使用过操作系统缩放: - 没有更好的选择
回答by Matt S.
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 6 Interface Builder 中的 +/- 而遇到这个问题的人,您可以从编辑器菜单中进行操作,或者如果您有触控板,也可以使用捏合手势。见附件SS。--编辑--这仅适用于故事板。单个笔尖的缩放仍然消失。
回答by jungledev
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!
我在苹果论坛中找到了一个令人满意的解决方案,来自用户rainman50。注意:在 xcode (v6.4) 设置中无法缩放 XIB,即使您尝试使用键绑定或修改键绑定,或使用触控板缩放手势也是如此。这对我来说非常有效。我有一台 11 英寸的 macbook air,在没有外接显示器的情况下开发很令人抓狂。这个解决方案适用于外接显示器!
"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
对我来说有效。希望也能帮助其他人。”-rainman50
回答by Tom Howard
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.
在 Xcode 8 中,选择Editor->Zoom
并选择您想要的放大倍数。或者,如果您有触摸板,请使用捏合和平移手势。谢谢@matt s。
回答by Dzylum
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.
我发现如果我在创建新项目时在第二个屏幕上选中“使用故事板”选项来启动一个项目,该MainStoryboard.storyboard
文件将在右下角为我提供缩放工具。在 XIB 文件上仍然不可用。
回答by Chase
EDIT:This is notan 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.
我不知道在 xcode 中放大/缩小的方法,但是对于 mac,您可以使用辅助功能控件进行放大。在我的 MacBook 上,我在触摸板上按住命令并用两根手指滚动以启用此功能。