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:
- From the Apple menu, choose System Preferences.
- Click the Accessibility icon
- Choose Mouse & Trackpad from the options on the left
- Click Trackpad Options
- Place a checkmark next to "Enable dragging"
- From the related pop-up menu, choose “three finger drag” so there's a checkmark next to it
- 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