如何让NSTextView水平滚动?
所以我正在玩 XCode,我想知道是否可以水平滚动 NSTextView。我知道我们可以通过界面生成器(或 Xcode)向其添加水平滚动条,但即使添加后您仍然无法水平滚动,因此任何帮助都会很棒。谢谢
so I was playing around with XCode and I was wondering if it was possible scroll an NSTextView horizontally. I know that we can add a horizontal scroller to it through interface builder (or Xcode) but you still can't scroll horizontally even after adding it so any help would be great. Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您设置了滚动条上的框架/边界吗?这些都需要手动设置才能使滚动条工作。
have you set the frame/bounds on the scroller? Those both need to be manually set for a scroller to work.