Drag the canvas in interface builder

2019-02-16 11:59发布

Is there any way to drag the canvas in interface builder, like the hand tool in Adobe Reader?

4条回答
爷的心禁止访问
2楼-- · 2019-02-16 12:12

I think two-finger scrolling on a trackpad is the best of the suggestions here. If you're not using a trackpad, 'Zoom to Fit' may work for you. In addition to zooming, it also centres the storyboard in the window, which, nine times out of ten, is what I really want to do when I'm wishing I had a hand tool.

There's no default shortcut for it, so short of defining your own, just right- or control-click on the canvas and select 'Zoom to Fit' from the contextual menu. Alternatively, click a scene or view in the document outline to centre on that view. If the view can't fit within the visible workspace, it will automatically be scaled down to fit.

查看更多
forever°为你锁心
3楼-- · 2019-02-16 12:14

There is no hand tool like in Adobe Reader. You can use two-finger scrolling if you have a trackpad. You can use your mouse wheel to scroll vertically if you have a mouse wheel. Otherwise, you just have to use the scroll bars.

查看更多
Rolldiameter
4楼-- · 2019-02-16 12:21

I use keyboard shortcuts to zoom the canvas to 50% or 25% first, then use the cmd-arrow keys. That way, every arrow key has a larger effect.

Zooming to 25% makes the canvas items really small, so you can cover a lot of ground with a few cmd-arrow keystrokes.

查看更多
甜甜的少女心
5楼-- · 2019-02-16 12:29

You can scroll using keyboard:

⌘ → Scroll right

⌘ ← Scroll left

⌘ ↓ Scroll down

⌘ ↑ Scroll up

it is very painful, but what can I say, Nice Job Apple! :(

查看更多
登录 后发表回答