Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to see which pixels are what coordinates with crosshairs on iPhone simulator?

Is there a tool that will do this? I want to be running the simulator and then be able to put the mouse over some point and have it tell me what the (x,y) coordinates are. Surely there's a simple tool that does this.

like image 330
Marty Avatar asked Jan 14 '11 20:01

Marty


People also ask

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.

How do I view Simulator logs?

Using Chrome Developer Tools To access it, open the Chrome Developer tools from the More tools menu. Inside it you need to open the Remote devices view from the More tools menu. The view will list all attached Android devices and running emulator instances, each with its own list of active web views.

Does iOS Simulator have camera?

Simulator doesn't have a Camera. If you want to access a camera you need a device.


3 Answers

I just use the built-in screenshot snapper from OS X. Just Command+Shift+4 and when you drag it shows the dimensions of the snap you'd take. Press escape to drop it. Works great.

like image 131
Mike A Avatar answered Oct 16 '22 18:10

Mike A


In the Developer Tools -> Applications -> Graphics Tools there is a program called Pixie. It will do what you want. In Preferences you can set it up so that an option-drag will count pixels. You can also set it to just show the pixel coordinates and do the math yourself.

Pixie is under Additional Tools for XCode

like image 38
Walter Avatar answered Oct 16 '22 18:10

Walter


I've used the Iconfactory's xScope for this before. If you create rulers that are the size of the display in the Simulator, you can get a readout of the X and Y coordinates of the mouse pointer as you move across the Simulator screen. Getting the rulers precisely aligned with the edge of the Simulator screen can be a little tricky for applications with dark backgrounds, though.

like image 3
Brad Larson Avatar answered Oct 16 '22 18:10

Brad Larson