ios - Does UIPageViewController has to be full screen? -


What should be UIPageViewController full screen? Is it embedded in a small rectangle of other visual containers like UIView , UINavigationController or UITabBarController

No, this is not a full screen, in fact it can be used by any other UIViewController Can be done in the form of. If you want to embed it in a small rectangle, you can use it.

Let's assume that you want to embed it into a basic controller that is a UIViewController subclass then define page view controller Add a child as controller in code> viewDidLoad :

  self.pageViewController = [[UIPageViewController alloc] initWithTransitionStyle: UIPageViewControllerTransitionStyleScroll Navigation Orientation: UIPageViewControllerNavigationOrientationHorizontal Option: Zero]; Self.pageViewController.view.frame = ... // set frames or autolayout barriers [auto addChildViewController: self.pageViewController]; [Self.view addSubview: self.pageViewController.view]; [Self.pageViewController didMoveToParentViewController: self];  

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -