开发者

Vibrate when UialertviewAppears iphone sdk?

开发者 https://www.devze.com 2022-12-12 22:34 出处:网络
Currently i am playing a simple beep.mp3 file when alertview appears i am using avaudioplayer and set an indefinite loop 开发者_如何学Cto play beep until alert dismisses.Now i want to vibrate continuo

Currently i am playing a simple beep.mp3 file when alertview appears i am using avaudioplayer and set an indefinite loop 开发者_如何学Cto play beep until alert dismisses.Now i want to vibrate continuously when alertview appears with beep until user dismisses alert.how do i do this?


AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);

(iPhone Dev Center link)

0

精彩评论

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

关注公众号