ios5通知提醒样式 [英] ios5 notifications alert style

查看:99
本文介绍了ios5通知提醒样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法通过ios5中的编程设置通知的警报样式?

Is there any way to set the alert style for notifications via programming in ios5?

我的应用程序使用有动作的通知,我不想放这些通知作为横幅。应用程序的流程取决于到达的推送通知。

My app uses notifications that have actions and I do not want to put those notifications as banners. The flow of the app is dependent on the push notifications that arrive.

所以我找到了一种方法,可以将通知的警报样式设置为警报而不是横幅。有没有办法呢?

So I was finding a way by which I could set the alert style of the notifications to "Alerts" rather than "Banners". Any way to do that?

推荐答案

不,你的应用程序无法控制这个。由用户决定他希望如何显示通知。但为什么打扰你呢?单击操作按钮(也称为查看)或在中心单击通知本身与应用程序代码的行为类似。

No, your app cannot control this. It is up to the user to decide how he wants your notifications to display. But why does it bother you? Clicking on the action button (aka "View") or clicking the notification itself in Center is similar in behavior regarding your app's code.

这篇关于ios5通知提醒样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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