Xcode 的 Interface Builder 中没有水平滚动条

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

No horizontal scrollbar in Xcode's Interface Builder

xcodeinterface-builderosx-mavericks

提问by Kamil

When I try to edit a storyboard file in Xcode (Version 5.1.1 (5B1008) under OS X 10.9.3) I can only see the vertical scrollbar. Moving around in the horizontal direction between view controllers is not possible. The horizontal bar doesn't show when I hover over it. It only briefly shows when I select past the visible area but it immediately disappears afterwards and I can only scroll by a few pixels at a time this way.

当我尝试在 Xcode(OS X 10.9.3 下的版本 5.1.1 (5B1008))中编辑故事板文件时,我只能看到垂直滚动条。在视图控制器之间在水平方向上移动是不可能的。当我将鼠标悬停在水平条上时,它不显示。它仅在我选择超过可见区域时短暂显示,但之后它会立即消失,并且我一次只能以这种方式滚动几个像素。

I have tried restarting XCode and the OS but it didn't help. Scrolling was possible before. It stopped working for no apparent reason this morning. I have not updated XCode nor OS X or messed with the system in any way since it was last working. Has anyone encountered this problem before? Do I need to reinstall XCode at this point?

我试过重新启动 XCode 和操作系统,但没有帮助。以前可以滚动。今天早上它无缘无故地停止工作。自从上次工作以来,我没有更新 XCode 或 OS X,也没有以任何方式弄乱系统。有没有人遇到过这个问题?我现在需要重新安装 XCode 吗?

回答by Meghs Dhameliya

Press Shift + Scroll Mousethis will scroll preview in horizontal

Press Shift + Scroll Mouse这将水平滚动预览

回答by Zhuo Tao

It's a not bug, it's a feature. It wouldn't be a problem if you use the Apple mouse. There is a workaround for a typical 2/3 button mouse, although it would affect all horizontal bars across the system. Just follow System Preferences->General->Show scroll bars, and select Always.

这不是错误,这是一个功能。如果您使用Apple鼠标,那将不是问题。对于典型的 2/3 按钮鼠标,有一个解决方法,尽管它会影响整个系统的所有水平条。只需按照系统偏好设置->常规->显示滚动条,然后选择始终。