如何在iOS 8应用程序中制作交互式通知? [英] How do I make interactive notifications in iOS 8 app?

查看:85
本文介绍了如何在iOS 8应用程序中制作交互式通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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?

推荐答案

看看

https://developer.apple.com/library/prerelease/ios/documentation/General/Conceptual/ExtensibilityPG/NotificationCenter.html

for通知中心小部件的详细信息以及

for details on widgets on the notification center as well as

https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIMutableUserNotificationCategory_class/index。 html#// apple_ref / doc / uid / TP40014610

其中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屋!

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