开发者

How to set an image and sound for local notifications?

In my app, I want to set an image for a UILocalNotification. Whenever the no开发者_如何学JAVAtification occurs, the image will be displayed, and some music will start. Then, when the user taps on the screen, the image will disappear and the sound will be stopped. How can I achieve that?


It is not possible to customize local notifications. You can just change the text and add one or two buttons. Please, refer to this question for more insight.


It is Not possible. You can add the launch image for notification tap.

 @property(nonatomic,copy) NSString *alertLaunchImage;   // used as the launch image (UILaunchImageFile) when launch button is tapped
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜