Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

See where touches occur on iOS simulator

I'm using Calabash to do some automated UI testing for my app, and I'm trying to touch some views which are embedded inside of a larger view, so I can't access their exact name to touch them directly.

So I'm trying to touch them using the relative center of the view they're embedded in, however, I'm just blindly adjusting my offset to try and hit these views without knowing if I'm getting farther or closer to the view.

So, my question, is there a way to show where a touch even occurred in the iOS simulator? I'm thinking something like a dot or some way to indicate that a touch occurred and where it occurred.

Any help is appreciated, thanks!

like image 541
Bill L Avatar asked Aug 26 '15 18:08

Bill L


1 Answers

defaults write com.apple.iphonesimulator ShowSingleTouches 1

Execute this command in terminal and restart the simulator

like image 147
Sateesh Pasala Avatar answered Oct 20 '22 13:10

Sateesh Pasala