如何实现3D-Touch偷看和选择? [英] How to implement 3D-Touch Peek-and-select?

查看:195
本文介绍了如何实现3D-Touch偷看和选择?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

手机,提醒和地图使用不同的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。

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偷看和选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆