2

To improve the response time of the haptic engine on iPhone7(plus), you have to call prepare on the UIFeedbackGeneratorinstance a few seconds before you actually want to perform the feedback.

But what if you want to use a UIImpactFeedbackGenerator and UINotificationFeedbackGenerator, and want them both to be as responsive as possible?

Will calling prepare on the UIImpactFeedbackGenerator instance also prepare the UINotificationFeedbackGenerator since they are both a subclass of UIFeedbackGenerator or do I have to prepare both feedback generators?

4

0 回答 0