Hi,
I've been writing a game for about 6 months now using Cocos2D v1.0.1 and Xcode 4.
I recently got to test my almost-finished game on an iPhone 4S with iOS5, and I'm seeing some strange behavior with CCLayerColor.
I'm using CCLayerColor to bring up a transparent overlay, displaying some text. The text is implemented with CCLabelTTF instances added as children of the CCLayerColor. The whole things scrolls in and out from the bottom of the screen as needed, using a CCMoveTo action.
This all works fine on iPad, and all simulators (including iPhone iOS5). However, when running on a 4S, the text is only displayed intermittently when the layer is scrolling in or out. It is not displayed at all when the layer is stationary.
Even stranger: in an attempt to debug this myself, I separated out the text onto a new layer - so now we have a CCLayerColor simply acting as a background, and a new CCLayer-derived class to host the text. Both layers are added as children of the scene, with the text layer given a higher Z value.
Same problem! The CCLayerColor, which is underneath the text layer, is somehow obscuring the text. If I remove the CCLaterColor, the text displays perfectly.
Anyone else seen this problem, or is able to try and re-create on a 4S? Any idea if I'm doing anything bad, or what I should try next?
Thanks in advance,