I used below code in Cocos2d 1.0 and Cocos2d 2.0, but it seems not found in Cocos2d 3.0
CGSize s = [[CCDirector sharedDirector] winSize];
How to get screen size in Cocos2d 3.0 ?
You can use viewSize.
CGSize s = [CCDirector sharedDirector].viewSize;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With