incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Becky Gibson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-1511) Cordova 2.1/2.2 Audio Capture iOS6 CDVAudioRecorderViewController wrong orientation
Date Fri, 21 Sep 2012 21:44:07 GMT

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

Becky Gibson commented on CB-1511:
----------------------------------

I have a branch with the fix if you want to review before I commit:  https://github.com/becka11y/incubator-cordova-ios/tree/orient6

I modified this a bit from Klaus' verions.   I explicitly call to the app viewcontroller (via
self.captureCommand.viewController) in the CDVAudioRecorderViewController version of supportedInterfaces.
 I call supportedInterfaces on the viewController since shouldAutoRotateToInterfaceOrientation
is deprecated.   I did not implement preferredInterfaceOrientationForPresentation. That was
never called on the CDVAudioRecorderViewController. It was called on the CDVAudioNavigationController
but I did not add it to handle the odd combination of an app that does NOT support Portrait
but only Portrait (Home button Top).  In this case, by not implementing preferredInterfaceOrientationForPresentation
the audio view will be presented in the Home button Top position.  If portrait is not supported
by the application at all, the audio view is still forced to portrait home button bottom.


I tested this on an original iPad running 5.1.1,  iPad 2 and iPhone4S running iOS6, and iOS
6 simulators using Xcode 4.5. 
                
> Cordova 2.1/2.2 Audio Capture iOS6 CDVAudioRecorderViewController wrong orientation
> -----------------------------------------------------------------------------------
>
>                 Key: CB-1511
>                 URL: https://issues.apache.org/jira/browse/CB-1511
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.1.0, 2.2.0
>         Environment: iOS6, iPad3, Cordova 2.1.0 with 2.2.0-fix CB-1465
>            Reporter: Klaus Schmidt
>            Assignee: Becky Gibson
>             Fix For: 2.2.0
>
>         Attachments: screenshot1.PNG, screenshot2.PNG
>
>
> Hi,
> I've running the actual code of Cordova 2.1.0 with the mainViewController-fix CB-1465.
> If I want to capture an Audio-File when the app is in landscape mode, the CDVAudioRecorderViewController
has the wrong orientation (screenshot1), the orientation is not fixed in portrait mode, it
is, like the other app, running in landscape mode. If I rotate the iPad to portrait mode,
the CDVAudioRecorderViewController is displayed correctly (screenshot2).
> Can you please fix this? I think, you can set the orientation to portrait-mode to a fix
portrait-mode orientation, but I don't know how...
> Thanks and greetings,
> Klaus.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message