we are developing one game app cooperating with a 3rd party company which owns iOS Map View SDK developed by themselves. We use the Map View that provided by partner company developer as background view, then above it we use cocos2d-iphone (version 3.0) engine as the main game view.
The map view class is based on UIKit, and inherits from UIView, so we make the cocos2d transparent with clear colour so that the map view can be shown to user with cocos2d scenes.
First launching game , login procedure needs to be completed , then enter the Main View (In which map view will be created as background ,scenes will be created after cocos2d initialized), but the crash HAPPENs after that with nothing done.
BUT,after first launching game login procedure executed , the game will not need login procedure when launched again, so the game enter the Main View directly. Crash DO NOT HAPPEN!
In one word ,crash just happen in first launching but not in other launchings.
After crash happen ,we found that if set [[CCDirector SharedDirector] setDisplayStats:NO], then crash don’t happen ,but after a time the CCSprites which added to scene will turn to black rectangle which size is same as image in CCSprite
Any developer any suggestions