iOS 视图控制器:XLPagerTabStrip
b5cw
9年前
XLPagerTabStrip 是一个容器视图控制器,它可以让你很容易的在视图控制器集合间转换。它可以显示当前的、之前的、之后的视图控制器的交互导航。
集成XLPagerTabStripis非常简便,只需要以下这些步骤:
-
Create a UIViewController class that should extend from eitherXLSegmentedPagerTabStripViewController,XLBarPagerTabStripViewController,XLButtonBarPagerTabStripViewController,XL推terPagerTabStripViewController.
-
The recently created concrete view controller should conform toXLPagerTabStripViewControllerDataSourceimplementing:-(NSArray *)childViewControllersForPagerTabStripViewController:(XLPagerTabStripViewController *)pagerTabStripViewController;
-
(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).
-
Enjoy!