views:

212

answers:

1

I want a UIView with a glowing or pulsing effect, like the status bar during a call on the iPhone. Does anyone know how I would go about doing this? I've experimented with NSTimer but can't seem to find how to go about this.

Thanks!

+3  A: 

The animation API has the ability to message a callback you provide when the animation completes. You can use the API to daisy-chain together a series of animations from one state to another, giving the pulse effect you are looking for.

fbrereto
Animations of the `[UIView beginAnimations:context:]` flavor would do you just fine like this.
Ian Henry
Thanks. I guess what I'm looking for is what the callback is. I guess I could use the setAnimationDidStopSelector to call the method again. Is that how you would do this?
Jonah
Yep, that selector is the one the API will invoke on your delegate when the animation completes. That's the "callback" to which I was referring.
fbrereto