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?
7 Answers
You need to enable 3 finger drag:
- From the Apple menu, choose System Preferences.
- Click the Accessibility icon
- Select Pointer Control in the sidebar
- Click the Trackpad Options button
- 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

- 825
- 1
- 10
- 17

- 389
- 3
- 2
-
3It would be great if the Simulator had a mode that just capture motions from the trackpad like it does with the keyboard. – Mycroft Canner Jul 17 '21 at 15:51
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

- 974
- 5
- 9
Answer for 2021, macOS 11.6
Enabling 3 finger drag settings was changed in recent versions,
- Choose Apple menu > System Preferences, then click Accessibility.
- Select Pointer Control in the sidebar. (In earlier versions of macOS, select Mouse & Trackpad.)
- Click the Trackpad Options button.
- Select ”Enable dragging,” then choose ”three finger drag” from the menu.
- Click OK.

- 2,169
- 3
- 17
- 30
With Xcode 13 you can also enable Capture Pointer
in the toolbar or using ^ + CMD + K
when using an iPad Simulator.

- 109
- 5
-
I wonder why they implemented this feature so poorly.. The deceleration rate is not respected. – Sonastra Jun 28 '22 at 13:08
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.

- 993
- 6
- 19
_scrollView.scrollEnabled = YES; _scrollView.contentSize = CGSizeMake(320, 2000);
– Frank Jan 30 '14 at 20:58