Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulating pinches on iPad-Simulator

I'm currently trying to implement the handling of (2-finger-)pinches on an iPad display. Doing so I came across the problem that the fingers (represented by by two grey circles in the iPhone-simulator) won't show up in the simulator for iPad. Even though it is still possible to simulate pinches it's sometimes very hard to do so without seeing the fingers and it's even impossible to drag the fingers to a location of where the pinches should happen.

Is there a secret setting etc. to enable those grey circles?

like image 397
pasql Avatar asked Apr 09 '12 14:04

pasql


People also ask

Does iOS simulator simulate performance?

The simulator does a really lousy job of indicating app performance. In fact it doesn't try. For most things the simulator is much, much faster than an iOS device. It runs your code on an x86 processor, which is much faster than the ARM and has many times more memory.

How do you simulate Location on iPhone simulator?

How to simulate location in Simulator. To simulate location on a Simulator, select Features menu > Location, then you will see a list of location and movement options you can simulate.

Can you install apps on iOS simulator?

Install Apps on SimulatorsTo install an app on a connected simulator, follow these steps. Go to Apps > Install Application. Find and open the app you want to install from your Mac. The app appears in the list of installed apps on the right side of the iOS Gateway window.


2 Answers

You should be able to see them if you hold down the Option key while clicking the mouse in the area you wish to "pinch". Also if you press press Shift-Option it will lock the two "fingers" positions relative to each other.

  1. Place the pointer where you want the pinch to occur.

  2. Hold down the Option key.

  3. Move the circles that represent finger touches to the start position.

  4. Move the center of the pinch target by holding down the Shift key, moving the circles to the desired center position, and releasing the Shift key.

  5. Hold down the mouse button, move the circles to the end position, and release the Option key.

via Apple Documentation

like image 191
Zack Avatar answered Sep 23 '22 09:09

Zack


To get the grey circles to work in iOS Simulator 5.1 for iPad, you have to set the scale to 75% (Cmd-2) or 50% (Cmd-3). Why? I don't know. Seems like a bug.

like image 29
bteitelb Avatar answered Sep 22 '22 09:09

bteitelb