UIPageViewControllerDataSource

祁均
2023-12-01

UIPageViewControllerDataSource是UIPageViewController的数据源代理。

Providing View Controllers

// 上一个页面
@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?

Supporting a Page Indicator

// 要显示的总UIViewController
@available(iOS 6.0, *)
optional public func presentationCountForPageViewController(pageViewController: UIPageViewController) -> Int

// UIViewController显示的索引
@available(iOS 6.0, *)
optional public func presentationIndexForPageViewController(pageViewController: UIPageViewController) -> Int

 


Appendix

UIPageViewControllerDataSource Protocol Reference

View Controller Catalog for iOS

Revision History

时间描述
2016-05-03博文完成

CSDN:http://blog.csdn.net/y550918116j

GitHub:https://github.com/937447974

 类似资料:

相关阅读

相关文章

相关问答