How do I identify if the app was in the background when the home button was clicked and not by external events (sms, call, video call)?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- What does it means in C# : using -= operator by ev
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- xcode 4 garbage collection removed?
- How are custom broadcast events implemented in Jav
If the application is sent to background,
will be getting called.
If it is by sms, call , video call, then,
will be getting called first. U can identify with that.
AFAIK there's no way. Look at UIApplicationDelegate documentation, you'll see :
There's apparently no way to distinguish an interruption (SMS, call) or an exit (by pushing the Home button).