Skip to content

chamblin/simple-page-view-controller-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

I could not find a simple example on the Internet, so I wrote one to figure it out.

This is the simplest possible example of a UIPageViewController implementation I could think of.

In my example, the pages are ColorViewControllers, which is just a regular view controller that can be initialized with a background color so it's obvious that it worked.  The data source returns alternating red and green ColorViewControllers.  In the real world, you would probably just use an array or something to keep track of which page you were on.

The PageViewController is initialized with a red ColorViewController.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors