Xcode 6如何启用故事板缩放?

我已经更新到 Xcode 6 beta 3,看到故事板角落的 [ + =-]按钮已经不见了。有没有一种方法可以让我在 Xcode 6的情节串连板中放大和缩小视图控制器?

47123 次浏览

You can zoom the storyboard by double-click canvas or using top-menu(Editor > Canvas > Zoom).

Alternatively: Right click blank space on canvas and choose zoom level (allows to zoom out further than double click)

enter image description here

These keyboard shortcuts are working for me:

Zoom out:

⇧ ⌥ ⌘ {

Zoom in:

⇧ ⌥ ⌘ }

Your mileage may vary.

If you have a magic trackpad (external or embedded in the macbook) you can also pinch to zoom... It sounds quite obvious, but I've just discovered it.

double cick is best for zooming IN and OUT... just do a DOUBLE CLICK in the story board in Xcode 6

Easiest way is to RIGHT CLICK on the canvas, and zooming options will pop up

In Xcode7.0 Beta zooming the View Controller window requires shortcut keys: command + '+' and command + '-'

You can also right click in the white space surrounding the view-controller (diagram) to get zoom menu options in a pop-up (Note: The Xcode App must have focus for this to work or you will NOT get the zoom pop-up).

In Xcode 7, the shortcuts have changed to the following:

  • Zooming out : cmd (⌘) + -
  • Zooming In : cmd (⌘) + +
  • Normal (100%) : cmd (⌘) + ctrl (^) + =

Right click on the empty area of your storyboard, a popup menu will be shown like below:

Menu

You can use this popup to zoom in/out the storyboard (or check the keyboard shortcuts shown in that).

In order to zoom in or zoom out using a mouse just hold alt (⌥) and scroll.