开发者

Play alert sound (same as default message ringtone)

Is it possible to play some default sounds, such as when an incoming SMS/push is 开发者_如何学Creceived?

If iOS SDK does not bundle these sound files, where can I download the same sounds?


Yes it is possible, but they use undocumented enum values, that means you should not use it on AppStore apps.

AudioServicesPlaySystemSound(1003);

iOS SDK does not bundle these sound files, but you can find them on the device in the /System/Library/Audio/UISounds/ folder. However, I believe these files are copyrighted.

Why not create a sound yourself?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜