Torch Source

Here's my Torch class for hassle-free manipulation of the iPhone's LED Torch.

1. Drag Torch.h and Torch.m files into your project

2. In your implementation file in which you will access the iPhone torch, import the torch header:
#import "Torch.h"
3. To turn on the torch, simply send the start message to Torch:
[[Torch sharedInstance] start];     // light me up!

Then for fun, play around with the strobe method.

Enjoy.
Todd Hopkinson