참고

https://stackoverflow.com/questions/32841335/ios-9-iphone-6s-play-haptic-feedback-or-vibrate

https://medium.com/nerdmade/ios-haptic-feedback-for-iphone-7-and-6s-1bc6e7f1c285


아이폰 7 부터는 UISelectionFeedbackGenerator  API 로 탭직엔진을 편하게 사용할 수 있지만,

탭틱엔진이 있는데도 불구하고 iPhone 6S는 위 API로 햅틱 피드백이 되지 않는다.


앱 심사를 계속 통과할 수 있는지는 알 수 없지만 (된다고 한다)

아래 세 가지중 하나를 사용해서 햅틱 피드백을 줄 수 있다.



import AudioToolbox


AudioServicesPlaySystemSound(1519) // Actuate `Peek` feedback (weak boom)

AudioServicesPlaySystemSound(1520) // Actuate `Pop` feedback (strong boom)

AudioServicesPlaySystemSound(1521) // Actuate `Nope` feedback (series of three weak booms)




+ Recent posts