是否有热键可以在 Xcode 4.3 中使用鼠标启用 Storyboard 平移?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11474035/
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-15 00:53:18  来源:igfitidea点击:

Is there a hot-key to enable Storyboard panning with mouse in Xcode 4.3?

xcodemousexcode-storyboardpan

提问by bejonbee

I'm looking for a hot-key, e.g. spacebar+ Click 'n drag, that will enable me to use the mouse to pan Xcode Storyboard.

我正在寻找一个热键,例如spacebar+ Click 'n drag,它将使我能够使用鼠标平移 Xcode Storyboard。

Obviously I can use the mouse-wheel to pan the storyboard, but it's far more tedious that clicking and dragging it to the exact location I want.

显然,我可以使用鼠标滚轮来平移情节提要,但是单击并将其拖动到我想要的确切位置要繁琐得多。

Is there a way to pan the Xcode storyboard with a click-and-drag motion?

有没有办法通过点击和拖动动作来平移 Xcode 故事板?

采纳答案by Liam

There isn't a way to do this unfortunately... Instead, there are a couple of tips on alternatives ways of moving things around in the Storyboard in this answer here: Moving UI-elements in storyboard editor

不幸的是,没有办法做到这一点......相反,在这个答案中,有一些关于在故事板中移动事物的替代方法的提示:在故事板编辑器中移动 UI 元素

回答by Kirk Spencer

I know this is an old post, but I have been wondering the same thing recently and thought that I would post what I found for anyone else out there that is searching.

我知道这是一个旧帖子,但我最近一直在想同样的事情,并认为我会发布我为其他正在搜索的人找到的内容。

Mac OS X Horizontal Scroll Trick. It's not exactly the same thing as panning, but it does let you scroll horizontally. Basically, hold down the shift key and use the scroll wheel to scroll horizontally. Let go to scroll vertically.

Mac OS X 水平滚动技巧。它与平移并不完全相同,但它确实可以让您水平滚动。基本上,按住 shift 键并使用滚轮水平滚动。放手垂直滚动。

回答by Mavrik Teo

Not exactly the same as panning but it works for me

与平移不完全相同,但它对我有用

  • Horizontal scroll | Shift + Mouse Scroll
  • Vertical scroll | Mouse Scroll
  • Zooming in and out | Option + Scroll
  • 水平滚动 | Shift + 鼠标滚动
  • 垂直滚动 | 鼠标滚动
  • 放大和缩小 | 选项 + 滚动

回答by jernkuan

Found a good answer recommending Smart Scroll

找到了推荐Smart Scroll的好答案

The grab and scroll(using middle mouse) is what you are looking for.

抓取和滚动(使用鼠标中键)就是您要寻找的。

https://apple.stackexchange.com/a/85777

https://apple.stackexchange.com/a/85777

回答by mghaoui

I got one of those fancy mouse thingies without a scroll wheel but I can pan with it. Hold down shift and move your index finger over that mouse horizontally, vertically, etc... Works like a trackball.

我得到了一个没有滚轮的花哨鼠标,但我可以用它平移。按住 shift 并在鼠标上水平、垂直等移动食指...就像轨迹球一样工作。