How to scroll in iOS Simulator on mac book air?

对着背影说爱祢 提交于 2019-12-23 07:27:59

问题


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




回答5:


For macbooks with force touch trackpad "force touch + scroll with single finger" is simulator's default scroll gesture.

For older macbooks without force touch, "three finger scroll" is simulator's default scroll gesture.

If you have macbook with force touch trackpad and still want to use three finger scroll, you can enable it thru the accessibility options as follows.

  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



回答6:


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.



来源:https://stackoverflow.com/questions/21466817/how-to-scroll-in-ios-simulator-on-mac-book-air

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!