ios - Multitasking in iphone? -
i developing game iphone application, has music player , and few animation. game interrupted text message or call terminated. should pause game until click cancel. while sound plays if receive call or message, audio player pause, after accept/decline call, doesn't play continue. how manage this? actualy
have @ uiapplicationdelegate reference. there you'll see various methods called events beyond control occur (such phone call coming in, etc.)
in case believe want override applicationwillresignactive
, applicationdidbecomeactive
methods handle pausing game, sounds, etc. , restoring them.
update: found blog post helpful in understanding multitasking delegates: http://www.cocoanetics.com/2010/07/understanding-ios-4-backgrounding-and-delegate-messaging/
Comments
Post a Comment