How to set sound local notification from song in iTunes?

后端 未结 2 1250
春和景丽
春和景丽 2021-02-09 09:51

I try to create alarm app but I don\'t know how to set song from iTunes to sound of local notification.

Now I use this code to call iTunes

- (void)tabl         


        
2条回答
  •  广开言路
    2021-02-09 10:18

    You can only use sounds that are a part of the main bundle, meaning, they have be in the build of the app when submitted to the app store.

    Yes, you can record sound, download sound, etc in app, but none of those sounds files created/saved can be used, because they are not in the app's bundle. If an app is using custom sounds by accessing them outside of the bundle, then they are using private APIs to do so. Trust me, I've tried every option I can think of.

提交回复
热议问题