如何在 iOS 8 应用程序中制作交互式通知? [英] How do I make interactive notifications in iOS 8 app?
问题描述
在 iOS 8 中,通知有一项新功能,您可以向下滑动通知并执行操作.例如,当您收到来自 iMessage 的消息并在通知上向下滑动时,您可以输入快速回复.
In iOS 8, there is a new feature to notifications where you can slide down on it and do an action. For example, when you get a message from iMessage and slide down on the notification, you can type in a quick response.
我一直在查看有关如何执行此操作的文档,但找不到.有谁知道我在哪里可以找到如何做到这一点/它在文档中的位置?
I've been looking through docs on how to do this, but I couldn't find it. Does anyone know where I can find out how to do it this/ where it is in docs?
推荐答案
看一看
有关通知中心小部件的详细信息以及
for details on widgets on the notification center as well as
其中 UIMutableUserNotification 是您要查找的内容.
where UIMutableUserNotification is what you're looking for.
请注意,此文档是预发布的,因此可以在推送生产时对其进行更改.
Note that this documentation is pre-release so it can be changed whenever production is pushed.
这篇关于如何在 iOS 8 应用程序中制作交互式通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!