Adding a UIPageView as Part of the Screen

This is a fairly new iOS development and is curious if something is possible, and if so, then it is best to do it.

I would like to make the UIPageViewController part of the screen. Ie, I want to have a menu bar, maybe some additional controls, and then put the page view controller on part of this page (so the menu bar is not part of the page rotation control). In other words, a UIPageView that acts like a scrollView that does not occupy the entire screen.

Acceptable design?

Thank.

+3
source share
3 answers

Yes, it is possible, and the implementation is very simple.

Steps (implemented in Xcode 6 using storyboards)

  • Start with an empty controller.

empty view controller

  1. . , , .

view controller with container view

  1. , , .

view controller and page view controller

  1. Ctrl + . , Container View View.

page view controller implementation step

+9

Apple: PageControl. UIScrollView UIPageControl.

iOS "Page-Based Application". UIPageViewController.

Containment View Controller.

BTW: UIPageView, UIPageControl UIPageViewController.

+1

uipageviewcontroller

http://www.techotopia.com/index.php/An_Example_iOS_5_iPhone_UIPageViewController_Application

U uiview pageturning, uiviewcontroller

u uiview uiviewcontroller.

like [Self.view addSubview: youruiview];

uiview-, [youruiview removefromsuperview];

!..

0

All Articles