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

javascript - Slick Slider width recalculation -

jsf - PrimeFaces Datatable - What is f:facet actually doing? -

angular2 services - Angular 2 RC 4 Http post not firing -