这是检查AVAudioPlayer
当前播放时间的正确方法吗?
[audioPlayer play];
float seconds = audioPlayer.currentTime;
float seconds = CMTimeGetSeconds(duration);
我如何在之后编写代码
[audioPlayer play];
当currentTime等于11秒时,
[self performSelector:@selector(firstview) withObject:nil];
当 currentTime 等于 23 秒时,在首次视图之后
[self performSelector:@selector(secondview) withObject:nil];
currentTime
返回一个 NSTimeInterval 变量,因此double seconds = audioPlayer.currentTime;
是正确的选择。 - 0xDE4E15B