- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
由于我们在 iOS 13 中失去了 3D Touch API,例如 UIViewControllerPreviewing
,UIContextMenuInteraction
似乎是替代品。
如果您想在 Haptic Touch 上放置菜单,UIContextMenuInteraction 非常适合。如果您想在识别 Haptic Touch 时做其他事情怎么办?
有这样的事吗?或者 Haptic Touch 是否与 UILongPressGesture
相同?
最佳答案
阅读文档 UIContextMenuInteraction 继承自 UIInteraction。搜索所有子类:
回顾每个子类,我认为最适合替换 UIViewControllerPreviewing 的是 UILargeContentViewerInteraction,因为 UILargeContentViewerInteractionDelegate 有一个返回 View Controller 的方法。
关于iOS 触觉触摸 API 的可能性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57697352/
我有一个项目需要建立一个自行车预订网站。我需要创建一个 Canvas 以允许人们签名。我创建了 Canvas ,它可以很好地使用鼠标,但我需要知道如何在移动设备上执行此操作。我尝试了几件事(使用 to
我正在尝试通过沉浸式 SDK 使用 Android 来探索触觉。 (下载的jar版本= 3.6) 引用: http://www2.immersion.com/developers/index.php?
我是一名优秀的程序员,十分优秀!