How to change the ViewControllers frame position inside the PageViewController? <p>The Code I Have written for loading view controllers in Page View Controllers. Programatically creating four view controllers and adding them to Page View Controller. I have changed the view controllers frame position but still not changing in the app </p> <pre><code> let controller: UIViewController = UIViewController() print(controller.view.frame) controller.view.frame = CGRectMake(10, 20, self.view.frame.width/2, self.view.frame.height - 20) print(controller.view.frame) controller.view.backgroundColor = UIColor.blackColor() let controller2: UIViewController = UIViewController() controller2.view.backgroundColor = UIColor.redColor() let controller3: UIViewController = UIViewController() controller3.view.backgroundColor = UIColor.blackColor() let controller4: UIViewController = UIViewController() controller4.view.backgroundColor = UIColor.greenColor() let p1 = controller let p2 = controller2 let p3 = controller3 let p4 = controller4 myViewControllers = [p1,p2,p3,p4] for index in 0 ..&lt; myViewControllers.count { NSLog("\(myViewControllers[index])") } let startingViewController = self.viewControllerAtIndex(0) let viewControllers: NSArray = [startingViewController] self.setViewControllers(viewControllers as? [UIViewController], direction: UIPageViewControllerNavigationDirection.Forward, animated: true, completion: {(done: Bool) in }) </code></pre>