UIPageViewController

 UIPageViewController

It’s not totally useless.

Code: https://github.com/zorn/PageDemo

68d48587fc806c2b35eb9ff0b7ad8115?s=128

Mike Zornek

December 08, 2016
Tweet

Transcript

  1. UIPageViewController It’s not totally useless.

  2. What is it?

  3. None
  4. None
  5. None
  6. None
  7. None
  8. My History

  9. None
  10. None
  11. How does it work?

  12. UITableView DataSource Delegate

  13. UIPageView
 Controller DataSource Delegate ?

  14. class UIPageViewController : UIViewController { public init(transitionStyle style: UIPageViewControllerTransitionStyle, navigationOrientation:

    UIPageViewControllerNavigationOrientation, options: [String : Any]? = nil) }
  15. func setViewControllers(_ viewControllers: [UIViewController]?, direction: UIPageViewControllerNavigationDirection, animated: Bool, completion: ((Bool)

    -> Swift.Void)? = nil)
  16. func pageViewController(_ pageViewController: UIPageViewController, viewControllerBefore viewController: UIViewController) -> UIViewController? func

    pageViewController(_ pageViewController: UIPageViewController, viewControllerAfter viewController: UIViewController) -> UIViewController? UIPageViewDataSource
  17. func pageViewController(_ pageViewController: UIPageViewController, viewControllerBefore viewController: UIViewController) -> UIViewController? func

    pageViewController(_ pageViewController: UIPageViewController, viewControllerAfter viewController: UIViewController) -> UIViewController? viewControllerBefore viewControllerAfter UIPageViewDataSource
  18. UIPageViewDataSource func presentationCount(for pageViewController: UIPageViewController) -> Int func presentationIndex(for pageViewController:

    UIPageViewController) -> Int
  19. UIPageViewDelegate func pageViewController(_ pageViewController: UIPageViewController, willTransitionTo pendingViewControllers: [UIViewController]) func pageViewController(_

    pageViewController: UIPageViewController, didFinishAnimating finished: Bool, previousViewControllers: [UIViewController], transitionCompleted completed: Bool)
  20. Performance / Bugs

  21. Final Thoughts