开发者

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 wh开发者_开发知识库at the (x,y) coordinates are. Surely there's a simple tool that does this.


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.


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.

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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜