xcode 如何在 mac book air 上的 iOS 模拟器中滚动?

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

How to scroll in iOS Simulator on mac book air?

objective-cxcodeuiscrollviewinterface-builderios-simulator

提问by Frank

I have a scroll view and and an embed UIImageView. Code is right but I can not scroll in the Simulator likely because I have a trackpad, not a mouse. Or can I?

我有一个滚动视图和一个嵌入的 UIImageView。代码是正确的,但我无法在模拟器中滚动,可能是因为我有一个触控板,而不是鼠标。或者我可以吗?

回答by Cheddar

You can click the trackpad and drag (as other folks have said), or if you have "Three finger drag" enabled in Trackpad preferences, you can scroll with three fingers.

您可以单击触控板并拖动(正如其他人所说),或者如果您在触控板首选项中启用了“三指拖动”,则可以用三指滚动。

Here's a guide to all of the gestures in the simulator: iOS Simulator User Guide

这是模拟器中所有手势的指南iOS Simulator User Guide

回答by mechsuitcat

You need to enable 3 finger drag:

您需要启用 3 指拖动:

  1. From the Apple menu, choose System Preferences.
  2. Click the Accessibility icon
  3. Choose Mouse & Trackpad from the options on the left
  4. Click Trackpad Options
  5. Place a checkmark next to "Enable dragging"
  6. From the related pop-up menu, choose “three finger drag” so there's a checkmark next to it
  7. Click OK
  1. 从 Apple 菜单中,选择系统偏好设置。
  2. 单击辅助功能图标
  3. 从左侧的选项中选择鼠标和触控板
  4. 单击触控板选项
  5. 在“启用拖动”旁边打勾
  6. 从相关的弹出菜单中,选择“三指拖动”,以便旁边有一个复选标记
  7. 单击确定

https://support.apple.com/en-us/HT204609

https://support.apple.com/en-us/HT204609

回答by Macondo2Seattle

You need to click and hold to scroll.

您需要单击并按住才能滚动。

回答by Carioni

When you left click is like when you touch the Screen, so click and scroll

当你左键点击就像你触摸屏幕一样,所以点击并滚动

回答by iVentis

If someone else is having issues scrolling (especially on horizontal scrollviews for some reason), It seems like the "force touch" of the trackpad is pretty sensitive and for some reason it seems to interrupt the scrolling, I disabled "Use Trackpad force" on the simulator in Hardware/Touch Pressure, now scrolling always works properly.

如果其他人在滚动时遇到问题(特别是由于某种原因在水平滚动视图上),触控板的“强制触摸”似乎非常敏感,并且由于某种原因它似乎中断了滚动,我禁用了“使用触控板强制”硬件/触摸压力中的模拟器,现在滚动始终正常工作。