Jonah
Jonah

Reputation: 4800

How can I make an iPhone UIView "pulse" or fade from one color to another repeatedly?

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!

Upvotes: 1

Views: 1132

Answers (1)

fbrereto
fbrereto

Reputation: 35935

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.

Upvotes: 2

Related Questions