I am wondering how to play haptic feedback when a button is pressed in objective-c, I've tried looking into the documentation but don't know how to read it.
Asked
Active
Viewed 802 times
1
-
2See https://developer.apple.com/documentation/uikit/animation_and_haptics?language=objc and look at the Haptic Feedback section. Now you know what classes are involved. Now search here for examples using those classes. Once you've tried something, update your question with what you have tried and explain what issues you are having. – rmaddy Sep 07 '19 at 04:50
-
will do thank you! – jbiser361 Sep 07 '19 at 04:51
-
I just used the audioToolbox version. – jbiser361 Sep 08 '19 at 22:35
-
AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); – jbiser361 Sep 08 '19 at 22:36