需要注意,UIImpactFeedbackGenerator类、UINotificationFeedbackGenerator类与UISelectionFeedbackGenerator类都有一个相同的父类UIFeedbackGenerator
In addition, you can call the prepare method of UIFeedbackGenerator to inform the system that haptic