开发者

(ios) How can I receive didReceiveLocalNotification out of delegate

开发者 https://www.devze.com 2023-02-05 02:18 出处:网络
I m trying to get a UILocalNotification scheduled to launch or get foreground my application. I know delegate function has didReceiveLocalNotification, but I would like to be aware of this notificatio

I m trying to get a UILocalNotification scheduled to launch or get foreground my application. I know delegate function has didReceiveLocalNotification, but I would like to be aware of this notification in a view controller.

Anyone knows if it is possible to add an observer to these local notificati开发者_如何学Goons?

Thanks for the help!


Why don't post a notification yourself in didReceiveLocalNotification using NSNotificationCenter? In your view controller then you can observe that user-defined notification.

0

精彩评论

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