- TOUCHkit in a Nutshell
- Intercepting and Forwarding Touch Events
- Implementing the TOUCHkit Overlay View
- Using TOUCHkit With Your Application / Trying out TOUCHkit
Using TOUCHkit With Your Application
To build a TOUCHkit-enabled application, you must add the four TOUCHkit files to your project (TOUCHkitView.[hm] and TOUCHOverlayWindow.[hm]). Set up the flags and defines in your application delegate and replace your UIWindow with WINDOW_CLASS.
From there, just enable AirPlay mirroring. This feature is available on recent iPhones (4S and later) and iPads (2nd gen, 3rd gen, and later). You can also use cable mirroring on these newer devices using a VGA, HDMI, composite, or component adapter. These are available from Apple's store and Amazon:
VGA Adapter ($29)
Apple Digital AV Adapter (HDMI, $39):
Apple Composite AV Cable ($39)
Component AV Cable (an Apple-branded version is currently not available at store.apple.com)
While these solutions are not as convenient as wireless AirPlay mirroring, they allow you to present demonstrations on existing monitors, projectors, and television sets.
Trying out TOUCHkit
I've uploaded TOUCHkit to the iOS 5 Cookbook repository. As with the other samples from the cookbook, it's provided on an as-is basis under a BSD license.
If you use and enjoy the code, please let me know — and feel free to recommend the Cookbook to your friends and colleagues.