Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I display all touches on screen in order to demo an iPhone app?

Now that we have display mirroring on the iPad 2 (wired now... wireless coming in iOS 5), is there an easy way to display all touches on screen? This would be useful when demoing an app?

What I am looking for is the ability to just include some SDK, and maybe change a line of code after which all of my touches will be displayed on screen.

I have seen many other ways to demo apps: 1)Using the simulator along with a screen capture tool that will turn your mouse cursor into a big white circle 2)Jailbreak hacks that can record the screen/display all touches

However, my goal is to just have touches displayed on a regular app running on an actual device.

like image 635
Alex Argo Avatar asked Jul 13 '11 22:07

Alex Argo


People also ask

How do you show touches on iPhone?

To see where touches occur on iPhone:Go to your iPhone's Settings > Accessibility > Touch > AssistiveTouch. Tap on AssistiveTouch to turn it on, and hit Create New Gesture… Now single tap anywhere on the screen and save the gesture with an appropriate name. That's it.

What is Display app touch?

Display Touch provides visual feedback as you touch your iPhone's display.

What is assistive touch on iPhone?

The AssistiveTouch menu gives you access to functions that you would otherwise control by pressing physical buttons or moving the device. With AssistiveTouch, you can: Activate the Accessibility Shortcut. Lock the screen. Adjust the volume.


2 Answers

I realise this question is old now, but none of the existing solutions were good enough for me. I needed something that worked out of the box with multiple windows, without having to subclass windows or do any fiddling about.

So I created ShowTime, which (up until Swift 4) literally just requires you to either add the pod to your podfile or add ShowTime.swift to your target. The rest is totally automatic unless you want to configure the defaults.

https://github.com/KaneCheshire/ShowTime

Starting from Swift 4 there's one extra step, in your AppDelegate, just set ShowTime.enabled = .always or ShowTime.enabled = .debugOnly

Edit: Swift 4 now has auto-enabling again so no need to manually enable.

like image 58
Kane Cheshire Avatar answered Oct 16 '22 23:10

Kane Cheshire


You can use Touchposé: https://github.com/toddreed/Touchpose

like image 39
hypercrypt Avatar answered Oct 17 '22 01:10

hypercrypt