Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 AVAudioPlayer 播放 AudioFile。现在有时用户想要设置音频文件的重复。那么我如何为用户提供此选项来设置播放音频文件的循环数。
感谢帮助。
将属性 numberOfLoops 设置为 -1,它将进入无限循环。