问题
I have a view on the iPad that I am 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?
回答1:
You can move the two gray circles that represent your fingers around the screen by holding Option and Shift and moving the mouse.
回答2:
Try double tapping with the "Option" key pressed. On the iPhone this causes the MKMapView to zoom out.
回答3:
Only pressing the alt key made the two gray dots representing your fingers appear for me...
回答4:
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.
回答5:
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
回答6:
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.
回答7:
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)
来源:https://stackoverflow.com/questions/11622579/how-to-pinch-out-in-ios-simulator-when-map-view-is-only-a-portion-of-the-screen