> if (*iShouldKeepBuzzing) { AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); } else { //Unregister, so we don't get called again... AudioServicesRemoveSystemSoundCompletion(kSystemSoundID_Vibrate); } } 以下为调用的代码: BOOL iShouldKeepBuzzing = YES; AudioServicesAddSystemSoundCompletion ( kSystemSoundID_Vibrate, NULL, NULL, 上一页 [1] [2] [3] [4] [5] [6] 下一页
|