开发者

iphone Alarm playing sound at a definite time

I am building an application in which I have to include an Alarm. In this scenario, I am not getting on which frame should I rely on. Adding, I need to play default audio file as recorde开发者_如何学Pythond one. How can I play default audio files?? Please help me in this regard..

Thanks in advance.


What you want is a local sound notification. You can go through this tutorial.

Also note that you can not use any sounds not provided within your application. Here is a extract from the docs:

For this property, specify the filename (including extension) of a sound resource in the application’s main bundle or UILocalNotificationDefaultSoundName to request the default system sound.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜