如何在xcode中延迟后播放声音
如何在2秒钟后自动播放声音?您可以使用计时器进行播放如何在xcode中延迟后播放声音,xcode,ios4,Xcode,Ios4,如何在2秒钟后自动播放声音?您可以使用计时器进行播放 - (void)playSomeSound:(NSTimer *)timer { // Your sound playing code goes here } [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(playSomeSound:) userInfo:nil repeats:NO]; 你会用定时器来做这件事 - (void)pl
- (void)playSomeSound:(NSTimer *)timer {
// Your sound playing code goes here
}
[NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(playSomeSound:) userInfo:nil repeats:NO];
你会用定时器来做这件事
- (void)playSomeSound:(NSTimer *)timer {
// Your sound playing code goes here
}
[NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(playSomeSound:) userInfo:nil repeats:NO];