UIPageViewControllerDataSource是UIPageViewController的数据源代理。
// 上一个页面
@available(iOS 5.0, *)
public func pageViewController(pageViewController: UIPageViewController, viewControllerBeforeViewController viewController: UIViewController) -> UIViewController?
// 下一个页面
@available(iOS 5.0, *)
public func pageViewController(pageViewController: UIPageViewController, viewControllerAfterViewController viewController: UIViewController) -> UIViewController?
// 要显示的总UIViewController
@available(iOS 6.0, *)
optional public func presentationCountForPageViewController(pageViewController: UIPageViewController) -> Int
// UIViewController显示的索引
@available(iOS 6.0, *)
optional public func presentationIndexForPageViewController(pageViewController: UIPageViewController) -> Int
UIPageViewControllerDataSource Protocol Reference
View Controller Catalog for iOS
时间 | 描述 |
---|---|
2016-05-03 | 博文完成 |
CSDN:http://blog.csdn.net/y550918116j
GitHub:https://github.com/937447974