开发者

How to set an image and sound for local notifications?

开发者 https://www.devze.com 2023-03-14 05:46 出处:网络
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

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

精彩评论

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