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?

9 Answers 9

344

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

9
  • 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. Jul 25, 2012 at 22:07
  • 2
    Option + Shift is also required for the gesture that changes the map tilt angle and triggers 3D mapviews. Nov 11, 2013 at 22:19
  • 53
    In more recent versions of the iOS Simulator only the OPTION key needs to be held.
    – Erin Geyer
    Jul 6, 2015 at 3:08
  • 1
    In windows compatible keyboard use Windows + ALT key and moving the mouse.
    – jkyadav
    Jun 29, 2017 at 6:15
  • 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, 2019 at 21:18
52

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

2
  • This did not work in my situation as one of the gray circles hovered over a table view on the bottom left causing the rows to be selected. Jul 25, 2012 at 22:08
  • 2
    it only required one click for me
    – DevC
    Mar 28, 2014 at 9:05
25

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

0
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

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.

8

Double click, hold, drag finger.

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.

0
3

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

2
  • 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. Nov 8, 2017 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 9, 2017 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)

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.