156

I have a view on the iPad that I'm adding an MKMapView to that is say half the height of the full screen. However, when I try to pinch out on the iOS Simulator it doesn't work since the to nubs fill the entire iPad view on the simulator.

And so, with the map view half the screen and I press the Option key on the keyboard I cannot grab the map to pinch out.

Anyone know how to handle this?

Paulo Mattos
  • 18,845
  • 10
  • 77
  • 85
Christopher
  • 5,806
  • 7
  • 31
  • 41

9 Answers9

344

You can move the two gray circles that represent your fingers around the screen by holding Option and Shift and moving the mouse.

Praveen
  • 55,303
  • 33
  • 133
  • 164
dandan78
  • 13,328
  • 13
  • 64
  • 78
  • 1
    That's it! Thank you! It took some practice to get it just right using two fingers from each hand but I have it working like a charm now. – Christopher Jul 25 '12 at 22:07
  • Glad I could help, especially since it took me ages to discover this feature myself. – dandan78 Jul 26 '12 at 07:00
  • 2
    Option + Shift is also required for the gesture that changes the map tilt angle and triggers 3D mapviews. – Gregory Cosmo Haun Nov 11 '13 at 22:19
  • 53
    In more recent versions of the iOS Simulator only the OPTION key needs to be held. – Erin Geyer Jul 06 '15 at 03:08
  • I needed to update my preferences in accesibility to access this feature. – vinesh Aug 28 '15 at 09:58
  • 1
    In windows compatible keyboard use Windows + ALT key and moving the mouse. – jkyadav Jun 29 '17 at 06:15
  • This method has a reference point set in the middle of screen, is it possible to define a custom reference point..? – Nouman Tahir Aug 26 '17 at 15:37
  • For me just pressing alt key is enough. – Waltari Nov 01 '17 at 04:18
  • 1
    @NoumanTahir You can, but it is very unintuitive. First you press and release OPTION + SHIFT which will make the gray circles stay on the screen without holding OPTION. Then hold down SHIFT to make the reference point follow the cursor. – twiz Nov 26 '19 at 21:18
52

Try double tapping with the option key pressed. On the iPhone this causes the MKMapView to zoom out.

Paulo Mattos
  • 18,845
  • 10
  • 77
  • 85
Glenn
  • 1,085
  • 1
  • 9
  • 13
25

Only pressing the alt key made the two gray dots representing your fingers appear for me...

Hutjepower
  • 1,241
  • 12
  • 17
12

2022 UPDATE

To zoom in

alt/option + pinch in using mouse

Alternate option: control + click (This will place a gray circle on the map, now you can click and drag your mouse to zoom in and out. If you want to disable it, just click on the circle again)

To zoom out

alt/option + pinch out using mouse

To get flat view of the map

Zoom to an area in map then Shift + alt/option + click and drag mouse

Keshu R.
  • 5,045
  • 1
  • 18
  • 38
8

Updated Solution:

Holding Option and Command gives you 2 finger vectors that spread out and in. Holding the mouse button down on the way in will pinch in and visa versa for spreading out.

sidewaiise
  • 1,445
  • 3
  • 16
  • 27
8

Double click, hold, drag finger.

Ian Warburton
  • 15,170
  • 23
  • 107
  • 189
6

You can use Option (Alt) button or combination of Option button and command button along with mouse movement to zoom in and zoom out a map or an image.

KSR
  • 1,699
  • 15
  • 22
2

There is another way to do this:

1- While holding the control key click with the mouse on where you would like to center the pinch gesture. This will cause one gray dot to remain on the screen. (Once its there, you can let go of the control key)

2- Now you can use the mouse to click and drag around the gray dot you specified in step 1

Once you are done you can remove the gray dot by tapping on it

l-l
  • 3,804
  • 6
  • 36
  • 42
  • This method is not working for me. I get the gray dot but pinch in/out with my track pad has no effect. Tested iOS 9.3 iPhone 6s. – Christopher Nov 08 '17 at 21:50
  • The pinch from your track pad won't work, you need to click and drag with the mouse.Think of the gray dot as one finger and the mouse as another. – l-l Nov 09 '17 at 19:12
2

For Zooming in double tap using mouse. For Zooming out press and hold on option/alt key this will give you 2 grey circles which represents your 2 fingers and drag your mouse up. To Zoom in drag your mouse down with option key pressed(or double tap on mouse)

iPhoneDeveloper
  • 958
  • 1
  • 14
  • 23