I’m trying to add a background image for my scene using the following code:
CCSprite* background = [CCSprite spriteWithFile:@"background-hd.png"];
background.tag = 1;
background.anchorPoint = CGPointMake(0,0);
[self addChild:background];
My apps orientation is landscape and the image’s orientation is landscape as well, however I get the image orientated in portrait:

I think this is the solution with Layer which set the scene with orientation…
See this link for More information Cocos2d-Scenes-and-Layers….
Hope this helpful to you…