Created
May 18, 2012 18:48
-
-
Save yoshimax/2726980 to your computer and use it in GitHub Desktop.
shouldAutorotateToInterfaceOrientation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://www.cocos2d-iphone.org/wiki/doku.php/prog_guide:migrate_to_v2.0#ccdirector | |
| // cocos2d v2.0 | |
| - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation | |
| { | |
| NSLog(@"interfaceOrientation: %d", interfaceOrientation); | |
| return UIInterfaceOrientationIsLandscape(interfaceOrientation); | |
| } | |
| { | |
| CCDirectorIOS* director_ = (CCDirectorIOS*) [CCDirector sharedDirector]; | |
| [director_ setDelegate:self]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment