cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CB-11614) On iOS the Objectiv-C method 'shouldAutorotateToInterfaceOrientation' is never called during/after a device orientation
Date Sat, 20 Aug 2016 09:43:23 GMT

     [ https://issues.apache.org/jira/browse/CB-11614?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Shazron Abdullah reassigned CB-11614:
-------------------------------------

    Assignee: Shazron Abdullah

> On iOS the Objectiv-C method 'shouldAutorotateToInterfaceOrientation' is never called
during/after a device orientation
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: CB-11614
>                 URL: https://issues.apache.org/jira/browse/CB-11614
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 4.2.0
>         Environment: * iMAC with OS X El Capitan Version 10.11.5
> * X-Code Version 7.3 (7D175)
> * iPhone 4S with iOS 9.3.3
> * Latest Version of Cordova 4.2.0
>            Reporter: Ronny Schleicher
>            Assignee: Shazron Abdullah
>            Priority: Critical
>
> h3. Steps to reproduce
> h4. 1. Create a new fresh cordova app on your iMAC
> {code}
> cordova create PhoneGap_ios de.test.test Test
> cd PhoneGap_ios
> cordova platform add ios --save
> cordova plugin add cordova-plugin-device-motion
> cordova plugin add cordova-plugin-device-orientation
> cordova plugin add cordova-plugin-network-information
> cordova plugin add cordova-plugin-device
> cordova plugin add cordova-plugin-splashscreen
> cordova plugin add cordova-plugin-console
> cordova plugin add cordova-plugin-statusbar
> cordova plugin ls
> {code}
> h4. 2. Open the x-code project an enable in the project all orientations
> Targets -> Test -> General -> Deployment Info -> Device Orientation ->
check all orientations 
> h4. 3. Set a breakpoint in follow method 
> {code:title=MainViewController.m|borderStyle=solid}
> - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
> {
>     // Return YES for supported orientations
>     return [super shouldAutorotateToInterfaceOrientation:interfaceOrientation];
> }
> {code}
> h4. 5. Now connect your iPhone and run the Test App
> With a change in orientation of the device, the method is never called.
> Is this correct? I believe this is an error.
> The method should be invoked in any change of orientation.
> h3. Notes and a Workaround
> In an earlier version of Cordova (3.9.2???) the *shouldAutorotate* method was used at
this point. This old method I have installed in my app as workaround again.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message