How to implement 3D-Touch Peek-and-select?(如何实现 3D-Touch Peek-and-select?)
问题描述
电话、提醒和地图使用不同的 3D-Touch Peek UI,允许一次性选择操作.例如,强制按下提醒并一次性选择提醒我一天",而不松开手指.它在视觉上也不同于使用 UIViewControllerPreviewing
API 的标准 3D Touch 预览,因为它在左对齐文本旁边显示自定义图标.
Phone, Reminders, and Maps use a different 3D-Touch Peek UI allowing to select an action in one go. For instance, force-press on a reminder and select "Remind me on a day" in one go, without releasing the finger. It also differs visually from standard 3D Touch previews using the UIViewControllerPreviewing
API as it displays a custom icon alongside left-aligned text.
我找不到使用官方 API 的方法.我错过了什么还是这确实是一个私有 API?
I couldn't find a way to do this using the official API. Did I miss something or is this a private API indeed?
推荐答案
我在 Apple 开发者论坛 也收到了 Apple 的回复:
I asked my question on the Apple Developer Forums as well and received this reply from Apple:
目前没有公共 API 来做这些事情.请提交错误报告这是否是您想在应用中执行的操作,并包括你想要做什么的具体细节.
Currently there is not public API to do these things. Please file bug reports if this is something you want to do in your app, and include specific details of what you're looking to do.
所以目前无法使用官方 SDK.我提交了这个增强请求雷达,如果你也需要这个,我鼓励你欺骗它!
So it's currently not possible using the official SDK. I filed this enhancement request radar and I encourage you to dupe it if you need this, too!
这篇关于如何实现 3D-Touch Peek-and-select?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何实现 3D-Touch Peek-and-select?
基础教程推荐
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01