Play local audio file with AVAudioPlayer

后端 未结 4 1904
隐瞒了意图╮
隐瞒了意图╮ 2020-12-19 07:51

I\'m testing my app in simulator.

I\'m downloading file and getting it\'s local way like this one: file:///Users/administrator/Library/Developer/CoreSimulator/

4条回答
  •  隐瞒了意图╮
    2020-12-19 08:11

    Look at NSFileManager. The method URLForDirectory:inDomain:appropriateForURL:create:error: is what you should use.

提交回复
热议问题