标签: xcode ios4
如何在2秒后自动播放声音?
答案 0 :(得分:3)
你会使用计时器
- (void)playSomeSound:(NSTimer *)timer { // Your sound playing code goes here } [NSTimer scheduledTimerWithTimeInterval:2 target:self selector:@selector(playSomeSound:) userInfo:nil repeats:NO];