【问题标题】:New Notification Center新通知中心
【发布时间】:2011-06-07 13:51:16
【问题描述】:

有没有办法在通知中心显示通知而不启用推送通知?例如,如果电子邮件发送失败,有没有办法可以创建一个字符串并将其显示在顶部的横幅中? 对不起,我是 iphone 开发的新手

【问题讨论】:

    标签: alert nsnotificationcenter banner ios5


    【解决方案1】:

    您可以简单地使用本地通知,我认为这应该可以像以前的 iOS 版本一样工作。 Push and Local Notifications Appear the Same to Users

    至于创建通知的底层逻辑,我认为 API 不会发生太大变化。在我的猜测中可能会发生变化的只是通知呈现给最终用户的方式。

    About Local Notifications and Push Notifications

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-05-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多