if (@available(iOS10.0, *)) {
UIImpactFeedbackGenerator*impactLight = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleLight];
[impactLight impactOccurred];
}
1、强度
2、响应
3、iOS 10+
if (@available(iOS10.0, *)) {
UIImpactFeedbackGenerator*impactLight = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleLight];
[impactLight impactOccurred];
}
1、强度
2、响应
3、iOS 10+
本文标题:iOS 10+ 触感反馈
本文链接:https://www.haomeiwen.com/subject/hgxfuqtx.html
网友评论