Does any one know how to use UIImpactFeedbackGenerator with objective c in iOS? I cannot find any examples anywhere. I am using a framework that requires objective c, so it cannot be swift.
Thanks, Scott
I figured it out
UIImpactFeedbackGenerator *myGen = [[UIImpactFeedbackGenerator alloc] initWithStyle:(UIImpactFeedbackStyleMedium)];
[myGen impactOccurred];
myGen = NULL;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With