Always stop animating when app is backgrounded
Always stop animating when app is backgrounded

Even if the CCDirector isn't the "visible" view controller, the app will still crash if it gets backgrounded and the CCDirector keeps trying to draw. Make sure CCDirector stops drawing if, say, the GameCenter login screen is showing and the user switches away from the app to look up their password in 1Password or something.
codepython/cocos2d-objc,cogddo/cocos2d-objc,zaneLou/cocos2d-objc,TukekeSoft/cocos2d-spritebuilder,knight2010/cocos2d-objc,SuPair/cocos2d-objc,seem-sky/cocos2d-swift,lpeancovschi/cocos2d-objc,lpeancovschi/cocos2d-objc,codepython/cocos2d-objc,cocos2d/cocos2d-objc,yaoxiaoyong/cocos2d-objc,dnessorga/cocos2d-objc,nader-eloshaiker/cocos2d-objc,SuPair/cocos2d-objc,TukekeSoft/cocos2d-spritebuilder,nader-eloshaiker/cocos2d-objc,finthamoussu/cocos2d-objc,knight2010/cocos2d-objc,SuPair/cocos2d-objc,SuPair/cocos2d-objc,oxeron/cocos2d-objc,finthamoussu/cocos2d-objc,savysoda/cocos2d-objc,cogddo/cocos2d-objc,TukekeSoft/cocos2d-spritebuilder,SuPair/cocos2d-objc,codepython/cocos2d-objc,dnessorga/cocos2d-objc,tambarskjelve/cocos2d-objc,lpeancovschi/cocos2d-objc,liduanw/cocos2d-objc,DNESS/cocos2d-objc,dnessorga/cocos2d-objc,seem-sky/cocos2d-swift,dnessorga/cocos2d-objc,liduanw/cocos2d-objc,cogddo/cocos2d-objc,liduanw/cocos2d-objc,cogddo/cocos2d-objc,zaneLou/cocos2d-objc,finthamoussu/cocos2d-objc,oxeron/cocos2d-objc,TukekeSoft/cocos2d-spritebuilder,lpeancovschi/cocos2d-objc,tambarskjelve/cocos2d-objc,DNESS/cocos2d-objc,savysoda/cocos2d-objc,nader-eloshaiker/cocos2d-objc,tambarskjelve/cocos2d-objc,tambarskjelve/cocos2d-objc,knight2010/cocos2d-objc,liduanw/cocos2d-objc,zaneLou/cocos2d-objc,savysoda/cocos2d-objc,yaoxiaoyong/cocos2d-objc,knight2010/cocos2d-objc,finthamoussu/cocos2d-objc,DNESS/cocos2d-objc,dnessorga/cocos2d-objc,seem-sky/cocos2d-swift,yaoxiaoyong/cocos2d-objc,savysoda/cocos2d-objc,yaoxiaoyong/cocos2d-objc,nader-eloshaiker/cocos2d-objc,codepython/cocos2d-objc,DNESS/cocos2d-objc,tambarskjelve/cocos2d-objc,DNESS/cocos2d-objc,liduanw/cocos2d-objc,zaneLou/cocos2d-objc,seem-sky/cocos2d-swift,cocos2d/cocos2d-objc,yaoxiaoyong/cocos2d-objc