ios - Handle notifications to pause app and how to test on iPad -


i "pause" app when ipad receives notifications, push notifications other apps, local notifications alarms , on, showing small pop window. have tried event listen can not find it.

i have implemented in view controller applicationwillresignactive , hope there similar kind of notifications.

    [[nsnotificationcenter defaultcenter] addobserver:self                                           selector:@selector(pausemyapp:)                                               name:uiapplicationwillresignactivenotification                                             object:nil]; 

i'm sure have read somewhere can not recall. appreciate if can redirect me right documentation or give short piece of code.

thanks in advance.

i must seem stupid have asked question, answer same using :-) implement applicationwillresignactive. documentation can found here (like me!) has problem finding again...

uiapplicationdelegate protocol reference


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -