jjzjj

UIImpactFeedbackStyle

全部标签

IOS 手机振动 UIImpactFeedbackStyle

Ios手机振动+(void)deviceVibrate:(int)vibrateType{        NSLog(@"vibrateType=%d",vibrateType);        UIImpactFeedbackStylefStyle=UIImpactFeedbackStyleLight;        if(vibrateType==1)        {                //--0.5秒长时振动--                AudioServicesPlaySystemSound(kSystemSoundID_Vibrate);