How do I add a file to the main bundle's /Library/Sounds directory?

前端 未结 3 655
闹比i
闹比i 2021-02-08 10:57

According to Apple\'s documentation, sound file in the ~/Library/Sounds will be search by system when trying to play a sound. How do I add a sound file to this folder?

I

3条回答
  •  长情又很酷
    2021-02-08 11:40

    the link you have is for Mac! the correct document for iOS should be here

    in summary, you can just add the sound file to your project as a nonlocalized resource of the app bundle.

提交回复
热议问题