I would like to implement a strobe light on my iphone 4 I already have the code to turn on and off the LED.
I figure I should use an NSTimer to repeat the method that turn the light on and off, also i figure i would use a UISlider to change the rate at which the strobe flashes.
I just need to know what the best way to implement the strobe would be. I'd really appreciate any help I could get on this.
(No idea why anyone would vote this down -- perfectly reasonable question, if vague).
It sounds like your approach is pretty reasonable; using an
NSTimerin that fashion will be about as passive as you can get and aUISlideris certainly a reasonable control.