On simulator apps never pause in background
This commit is contained in:
parent
8280fdeb3a
commit
6fdfbdc29f
@ -106,6 +106,11 @@
|
|||||||
* Let the app going to sleep.
|
* Let the app going to sleep.
|
||||||
*/
|
*/
|
||||||
- (void) stopKeepingAwake {
|
- (void) stopKeepingAwake {
|
||||||
|
|
||||||
|
if (TARGET_IPHONE_SIMULATOR) {
|
||||||
|
NSLog(@"BackgroundMode: On simulator apps never pause in background!");
|
||||||
|
}
|
||||||
|
|
||||||
[audioPlayer pause];
|
[audioPlayer pause];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user