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

前端 未结 3 1673
Happy的楠姐
Happy的楠姐 2021-02-08 11:31

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:56

    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.

提交回复
热议问题