You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Shazron Abdullah (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2012/02/01 02:30:56 UTC

[jira] [Issue Comment Edited] (CB-212) iOS orientation switch broken in 1.4.0

    [ https://issues.apache.org/jira/browse/CB-212?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13197481#comment-13197481 ] 

Shazron Abdullah edited comment on CB-212 at 2/1/12 1:29 AM:
-------------------------------------------------------------

To patch this, in your app's MainViewController.m:

{code:title=MainViewController.m|borderStyle=solid}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}
{code}
                
      was (Author: shazron):
    To patch this, in your app's MainViewController.m:

<pre>
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations
    return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
}
</pre>
                  
> iOS orientation switch broken in 1.4.0
> --------------------------------------
>
>                 Key: CB-212
>                 URL: https://issues.apache.org/jira/browse/CB-212
>             Project: Apache Callback
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Steve Gill
>            Assignee: Shazron Abdullah
>              Labels: ios
>             Fix For: 1.5.0
>
>
> Pretty lame bug to find. Looks like orientation change is broken in iOS. Create a sample project, enable all of the orientations, switch orientation in simulator, won't change at all. Works fine for PG 1.3.0.
> Looks like we will be releasing a point release soon! 1.4.1

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira