In UILocalNotification sound set recorded audio

别说谁变了你拦得住时间么 提交于 2019-12-13 04:02:12

问题


I need your help. Actually the problem is that i want to set the recorded audio file (which is saved in application document directory) to be used as sound for local notification. I searched a lot and concluded that sound file that we have to use in local notification must be in Application Bundle. So if any idea about saving recorded audio file in Application bundle at run time will also do my task


回答1:


No you can not play an audio file that is not in the bundle and you can not modify the application bundle at runtime. One reason why Apple requires all sounds for local notifications to be bundled with the application may be for security reasons, that would make it possible for all bundled files to be checked for security risks during the review process.



来源:https://stackoverflow.com/questions/7040551/in-uilocalnotification-sound-set-recorded-audio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!