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
Post a Comment