I have an application. In that, i have to list of music file and "Set as ringtone" option there. I dont know how to set music file as call tone or message tone.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Apps cannot set ringtone/message tone programmatically. That's not allowed by iOS. You might be able to save audio files so that user can access them and set them as ringtones himself.
How to add a ringtone from an application to ringtones of iphone?
Hope that helps!
回答2:
iOS SDK does not allow you to set the ringtone or message tone.