当我用来按下按钮时,是否有任何代码可以使我的应用程序平滑振动。目前我正在使用以下方法。请看一看
-(IBAction)buttonClicked:(UIButton *)sender
{
//AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);
AudioServicesPlayAlertSound (1105);
self.view.userInteractionEnabled = NO;
[[HelperClass shared]playSound:@"single_click_12"];
[HelperClass showBounceAnimatedButton:sender completionBlock:^{
self.view.userInteractionEnabled = YES;
selectedIndex =(int) sender.tag;
[self performSelector:@selector(pushTheViewToGame) withObject:nil afterDelay:0.6];
}];
// NSLog(@"Sender Tag :%li",(long)sender.tag);
}