xcode - Always Show the NSUserNotification -


i have nsusernotification showing document when within app happens. there way show notification when app frontmost app (i.e., show it)?

(it show if i'm in other app)

here's answer info need.

notifications displayed when application isn't key application. if want notifications display regardless of if application key or not, you'll need specify delegate nsusernotificationcenter , override delegate method usernotificationcenter:shouldpresentnotification: returns yes.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -