Skip to content

Sizing View Controllers #6

@davidtperk

Description

@davidtperk

Hey Brendan, thanks for the repo. Your code works perfectly with .xibs, but when I try to substitute view controllers for .xibs, the sizes are all thrown off. The only code I changed was:

This:
var AVc :AViewController = AViewController(nibName: "AViewController", bundle: nil); var BVc :BViewController = BViewController(nibName: "BViewController", bundle: nil); var CVc :CViewController = CViewController(nibName: "CViewController", bundle: nil);

To this:
var AVc = storyboard!.instantiateViewControllerWithIdentifier("VC1") as! UIViewController var BVc = storyboard!.instantiateViewControllerWithIdentifier("VC2") as! UIViewController var CVc = storyboard!.instantiateViewControllerWithIdentifier("VC3") as! UIViewController

img_2706
img_2707
img_2708

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions