How to scroll in iOS Simulator on mac book air?

2019-06-15 08:31发布

问题:

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?

回答1:

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



回答2:

You need to enable 3 finger drag:

  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

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



回答3:

You need to click and hold to scroll.



回答4:

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