开发者

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

开发者 https://www.devze.com 2022-12-25 02:59 出处:网络
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

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!


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消