Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-1315

Setting the view controller's view size in viewWillAppear, use rootViewController

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.1.0
    • cordova-ios
    • None

    Description

      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.

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            shazron Shazron Abdullah
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: