Taptic in iOS 9

前端 未结 4 1602
-上瘾入骨i
-上瘾入骨i 2021-01-30 23:16

Can you use the taptic engine in iOS 9 with iPhone 6s? WatchOS2 and OS X have the ability to use the haptic engine, so I assumed it would be in iOS 9 too, but I coudn\'t find an

4条回答
  •  自闭症患者
    2021-01-30 23:35

    There doesn't seem to be a published API for iOS 9 currently.

    On OSX you need to use NSHapticFeedbackManager:

    NSHapticFeedbackManager Class Reference

    and here is the API for WatchOS2:

    WKInterfaceDevice Class Reference

    By simply searching here you can see what I'm saying:

    Haptic search (iOS pre-release) - shows nothing

    Haptic search (OSX pre-release) - shows NSHapticFeedbackManager

提交回复
热议问题