To change Device orientation instantly, use the following syntax:
Syntax:
CCDirector *director = [CCDirector sharedDirector];
[director setDeviceOrientation:kCCDeviceOrientationPortrait]; // set your desired orientation here
Syntax:
CCDirector *director = [CCDirector sharedDirector];
[director setDeviceOrientation:kCCDeviceOrientationPortrait]; // set your desired orientation here
No comments:
Post a Comment