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 (JIRA)" <ji...@apache.org> on 2012/08/31 01:21:08 UTC

[jira] [Resolved] (CB-1315) Setting the view controller's view size in viewWillAppear, use rootViewController

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

Shazron Abdullah resolved CB-1315.
----------------------------------

    Resolution: Fixed

Fix commit - http://git-wip-us.apache.org/repos/asf/incubator-cordova-ios/commit/cb33d9ff
                
> Setting the view controller's view size in viewWillAppear, use rootViewController
> ---------------------------------------------------------------------------------
>
>                 Key: CB-1315
>                 URL: https://issues.apache.org/jira/browse/CB-1315
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>            Reporter: Shazron Abdullah
>            Assignee: Shazron Abdullah
>             Fix For: 2.1.0
>
>
> pull request: https://github.com/apache/incubator-cordova-ios/pull/40
> Starting in iOS 4, the recommended way for managing views and view controllers with respect to a `UIWindow` instance is through UIWindow's `rootViewController` property, as opposed to the previous method of adding the view via `addSubview`. Updated the inheriting view controllers and app delegates to follow the recommended pattern.
> **Note:** This also requires moving the code that sets the default view's frame size to the view controller's `viewWillAppear` method. This code is managed in the consuming app's view controller (as opposed to `CDVViewController`), in the interests of Cordova modularity in developers' apps.

--
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