如何在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.
我一直在查看有关如何使用的文档这样做,但我找不到它。有谁知道我在哪里可以找到这个/它在docs中的位置?
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通知中心小部件的详细信息以及
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屋!