0
如何在2秒后自动播放声音?如何在xcode延迟后播放声音
如何在2秒后自动播放声音?如何在xcode延迟后播放声音
你可以使用一个计时器的
- (void)playSomeSound:(NSTimer *)timer {
// Your sound playing code goes here
}
[NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(playSomeSound:) userInfo:nil repeats:NO];