Cannot zoom in and out of nib in the new Interface Builder

£可爱£侵袭症+ 提交于 2019-11-29 02:10:38

问题


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?


回答1:


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 :)




回答2:


Xcode 4.2 and no zoom and needed it badly. I have used the OS zoom: - no better alternative




回答3:


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.




回答4:


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.




回答5:


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.




回答6:


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




回答7:


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.



来源:https://stackoverflow.com/questions/6136624/cannot-zoom-in-and-out-of-nib-in-the-new-interface-builder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!