【问题标题】:Is there a way to control the intensity of the iPhone vibration in real time有没有办法实时控制 iPhone 振动的强度
【发布时间】:2021-01-08 06:14:00
【问题描述】:

例如,我想制作一个以 0 强度振动开始的滑块。当用户将滑块滑动到接近 100 时,振动会实时增加,直到他们松开滑块,此时振动应该停止。

【问题讨论】:

    标签: ios objective-c swift swift3 swiftui


    【解决方案1】:

    有去年为你发布的CoreHaptics框架

    可以看示例代码here

    【讨论】:

      猜你喜欢
      • 2014-03-20
      • 1970-01-01
      • 2010-10-11
      • 1970-01-01
      • 2014-04-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-07
      相关资源
      最近更新 更多