M Penades
M Penades

Reputation: 1592

(ios) How can I receive didReceiveLocalNotification out of delegate

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 notifications?

Thanks for the help!

Upvotes: 2

Views: 947

Answers (1)

Felix
Felix

Reputation: 35394

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

Upvotes: 2

Related Questions