触控反馈
点击屏幕,屏幕有触感
UIImpactFeedbackGenerator * impact = [[UIImpactFeedbackGenerator alloc]initWithStyle:UIImpactFeedbackStyleHeavy];
[impact impactOccurred];
UIImpactFeedbackStyle
UIImpactFeedbackStyleLight,//轻度
UIImpactFeedbackStyleMedium,// 中度
UIImpactFeedbackStyleHeavy,//重度
网友评论