ios - Add Custom View on UIPageViewController -


I want to add a custom view (red view) at the bottom of my UIPageViewController like this:

Enter image details here

Because I want some standard text that is displayed on every view Everythings of my UIPageViewController work fine, but my custom view is not visible, this is what I tried:

  - (zero) viewDidload {self.pageController = [[UIPageViewController Alloc] initWithTransitionS Tyle: UIPageViewControllerTransitionStylePageCurl Navigation Orientation: UIPageViewControllerNavigationOrientationHorizontal Option: Zero]; Self.pageController.dataSource = self; [[Self. Page controller view] setframe: [[see itself] limitations]]; First Tutorial View Controller * Initial view controller = [Self view controlleroutindex: 0]; NSArray * viewControllers = [NSArray arrayWithObject: initialViewController]; [Self. Page Controller SetView Controller: Visual Controller Direction: UIPageViewControllerNavigationDirectionForward Animated: Not Complete: Zero]; [Self addChildViewController: self.pageController]; [[See itself] Adsview: [self Page controller view]]; [Self. Page Controller did the FrontPoint View Controller: Self]; // here I try to set a custom view: [[self Page Controller View] Adsview [[Customize Yourself]];    

Do not add the page controller to the custom view itself

Instead, resize the page controller to allow the bottom position for the custom controller and add both your main view.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -