开发者

how can i set alertbody text on runningtime when local notification is fired in ios4 develop?

开发者 https://www.devze.com 2023-03-06 18:12 出处:网络
i\'m developing an iphone app. i\'m gonna use local notification. what i want is to set text of alertbody dynamically.

i'm developing an iphone app.

i'm gonna use local notification. what i want is to set text of alertbody dynamically.

basically, alertbody is set statically when the local notification is sc开发者_如何学Goheduled.

but, in my app, the text should be downloaded when the notification is fired.

can i do this? anyone help me..

thanks in advance.


You can't schedule a notification to have a custom message that is generated when the notification is fired.

If your app is running in the background you could fire an immediate local notification instead. See Listing 2-2 of this page on Apple's Local and Push Notification Programming Guide

0

精彩评论

暂无评论...
验证码 换一张
取 消