导航页

IOS之[UIPageControl:引导页]

强颜欢笑 提交于 2019-12-06 13:49:30
1.UIPageConrol API @property(nonatomic) NSInteger numberOfPages //>>页数 @property(nonatomic) NSInteger currentPage //>>当前页 @property(nonatomic) BOOL hidesForSinglePage //>>单页是否显示PageControl @property(nullable, nonatomic,strong) UIColor *pageIndicatorTintColor //颜色 @property(nullable, nonatomic,strong) UIColor *currentPageIndicatorTintColor //当前页的颜色 2.引导页制作 动画效果+代码参照: http://code4app.com/ios/ZWIntroductionViewController/54e1cb82933bf0212f8b5fbe 所需控件:UIScrollView + UIPageControl 需要一下几个步骤 1.初始化自定义ViewController 2.添加背景图 3.添加UIScrollView 4.添加PageControl 5.添加前景图 6.实现UIScrollViewDelegate 2