如何实现 3D-Touch Peek-and-select?

How to implement 3D-Touch Peek-and-select?(如何实现 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?

基础教程推荐