Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose device orientation methods to the AppDelegate #930

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Expose device orientation methods to the AppDelegate #930

wants to merge 1 commit into from

Conversation

iMobCoding
Copy link
Contributor

Forwards CCNavigationController's device orientation methods to the AppDelegate. Gives an option for different behaviors than default

…ppDelegate. Gives an option for different behaviors than default
@iMobCoding
Copy link
Contributor Author

Can the admins merge this pull request as it's pretty unintrusive? Asking because I am working on an accelerometer game where I have to disable auto orientation, and as I am constantly updating the cocos2d from develop branch, I have to manually change those 2 files again and again...

Best

@@ -76,6 +76,9 @@ @implementation CCNavigationController
// Only valid for iOS 6+. NOT VALID for iOS 4 / 5.
-(NSUInteger)supportedInterfaceOrientations
{
if ([_appDelegate respondsToSelector:_cmd])
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tabs/spaces. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants