AYPageControl 0.0.2

AYPageControl 0.0.2

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2016

Maintained by AYJk.



  • By
  • Andy

     

一个有动效的PageControl,效果图如下:

效果图

如何使用

1.导入头文件

#import "AYPageControl.h"

2.为pageControl设置总页数并绑定scrollview

//  设置总页数
self.pageControlView.numberOfPages = totalPages;
//  绑定对应的scrollview
self.pageControlView.bindingScrollView = self.bannerScrollView;

3.在代理方法中设置pageControl的属性

//  将scrollview的contentOffset.x赋值给pageControl进行计算
- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
    self.pageControlView.contentOffset_x = scrollView.contentOffset.x;
}

更新内容

v0.0.2

  • 优化了滑动视图时,小球的形变动画。

v0.0.1

  • 首次提交:实现动画

License

This project is under MIT License. See LICENSE file for more information.