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.
我是 iphone 新手。我正在开发一个属于音频播放器的项目,因为在我的项目中,我在资源中有 mp3 歌曲并且我已经播放了整首歌曲(持续时间为 5 分钟) )正确,但我的任务是,从音频中的指定点开始播放歌曲。如果有人知道这一点,请帮助我。
这可以像这样实现
NSURL *urlOfSong = [[NSURL alloc] initFileURLWithPath: soundFilePath]; AVAudioPlayer *newPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:urlOfSong error: nil]; [newPlayer setCurrentTime:Time_Of_Play];