开发者

iPhone SDK: Observe current time of AVAudioPlayer

开发者 https://www.devze.com 2023-01-09 15:33 出处:网络
is there a best practice for getting an event on every second of play开发者_开发知识库back of an AVAudioPlayer instance? I need to change a view automatically depending on the current playback time.

is there a best practice for getting an event on every second of play开发者_开发知识库back of an AVAudioPlayer instance? I need to change a view automatically depending on the current playback time.

Thank You!


You could start one or more instances of NSTimer when playback starts, and change the view when the timer(s) fire.

0

精彩评论

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

关注公众号