You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Miguel Cardoso (JIRA)" <ji...@apache.org> on 2013/11/12 14:02:17 UTC
[jira] [Created] (CB-5355) uncaught exception in the webView by
defining window.shouldRotateToOrientation on IOS7
Miguel Cardoso created CB-5355:
----------------------------------
Summary: uncaught exception in the webView by defining window.shouldRotateToOrientation on IOS7
Key: CB-5355
URL: https://issues.apache.org/jira/browse/CB-5355
Project: Apache Cordova
Issue Type: Bug
Components: iOS
Affects Versions: 3.1.0
Environment: IOS 7.0.3 device and simulators on XCode 5.0
Reporter: Miguel Cardoso
Priority: Blocker
by adding in javascript the function
window.shouldRotateToOrientation=function(orientation){
return (1==orientation);
}
dispatches in xcode the error:
2013-11-12 12:56:43.388 qFinance[17446:70b] *** Assertion failure in -[UIApplication runModal:](), /SourceCache/UIKit_Sim/UIKit-2903.23/UIApplication.m:9465
2013-11-12 12:56:43.389 HelloWorld[17446:70b] *** WebKit discarded an uncaught exception in the webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame: delegate: <NSInternalInconsistencyException> The view passed in does not have a window.
--
This message was sent by Atlassian JIRA
(v6.1#6144)