notify willEnterForeground / didEnterBackground with notification center.
bug fix: dismiss action sheet when enter background (fix iPad crash problem)