Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A4B23DC92 for ; Thu, 30 Aug 2012 23:13:08 +0000 (UTC) Received: (qmail 43063 invoked by uid 500); 30 Aug 2012 23:13:08 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 43011 invoked by uid 500); 30 Aug 2012 23:13:08 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 42914 invoked by uid 99); 30 Aug 2012 23:13:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Aug 2012 23:13:08 +0000 Date: Fri, 31 Aug 2012 10:13:08 +1100 (NCT) From: "Shazron Abdullah (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1381518127.19021.1346368388262.JavaMail.jiratomcat@arcas> Subject: [jira] [Created] (CB-1315) Setting the view controller's view size in viewWillAppear, use rootViewController MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Shazron Abdullah created CB-1315: ------------------------------------ Summary: 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