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?
基础教程推荐
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
