ios - Detect touch action that involves status bar -


i have perform action when user returns expanded status bar. can do: 1. user touches status bar. using code

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

how detect action: 2. returning status bar? method doesn't work

[[nsnotificationcenter defaultcenter] addobserver:self                                              selector:@selector(onstart)                                                  name:uiapplicationwillenterforegroundnotification                                                object:nil]; 

any solution?

found solution.

use uiapplicationdidbecomeactivenotification

instead of

uiapplicationwillenterforegroundnotification .


Comments

Popular posts from this blog

java - unable show chart in xls document using jasper reports -

javascript - How to change image src on success AJAX -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -