iOS 视图控制器:XLPagerTabStrip

b5cw 9年前

XLPagerTabStrip 是一个容器视图控制器,它可以让你很容易的在视图控制器集合间转换。它可以显示当前的、之前的、之后的视图控制器的交互导航。

集成XLPagerTabStripis非常简便,只需要以下这些步骤:

  1. Create a UIViewController class that should extend from eitherXLSegmentedPagerTabStripViewController,XLBarPagerTabStripViewController,XLButtonBarPagerTabStripViewController,XL推terPagerTabStripViewController.

  2. The recently created concrete view controller should conform toXLPagerTabStripViewControllerDataSourceimplementing:-(NSArray *)childViewControllersForPagerTabStripViewController:(XLPagerTabStripViewController *)pagerTabStripViewController;

  3. (Recomended) Set up your view controllers using a nib file or a Storyboard. We need to connect some IBOutlets (take a look at the Demo folder).

  4. Enjoy!

iOS 视图控制器:XLPagerTabStrip

项目主页:http://www.open-open.com/lib/view/home/1429687978119