首页 > 其他 > 详细

UIPageControl

时间:2014-02-20 05:19:49      阅读:323      评论:0      收藏:0      [点我收藏+]

UIPageControl



UIPageControl
技术博客http://www.cnblogs.com/ChenYilong/ 新浪微博http://weibo.com/luohanchenyilong 
numberOfPages // 设置有多少页 默认为0
// 2) 设置页数
[pageControl
 setNumberOfPages:kImageCount];
currentPage // 设置当前页
[pageControl setCurrentPage:0];

pageIndicatorTintColor // 设置页码指示器颜色
[pageControl setPageIndicatorTintColor:[UIColor blackColor]];
currentPageIndicatorTintColor // 设置当前页码指示器颜色

[pageControl setCurrentPageIndicatorTintColor:[UIColor redColor]];

添加分页控件的监听事件(监听值改变事件)
[pageControl
 addTarget:self action:@selector(pageChanged:)forControlEvents:UIControlEventValueChanged];

效果:
bubuko.com,布布扣
 
chenyilong. Powered by Postach.io

UIPageControl

原文:http://www.cnblogs.com/ChenYilong/p/3556398.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!