iOS关于UIPageControl的基本属性
2020年02月13日
作者:佚名
下面是来客网 jb51.cc 通过网络收集整理的代码片段。
来客网小编现在分享给大家,也给大家做个参考。
//创建UIPageControl UIPageControl * page = [[UIPageControl alloc] initWithFrame:CGRectMake(0,self.view.bounds.size.height-50,self.view.bounds.size.width,50)]; //设置背景颜色 page.backgroundColor = [UIColor clearColor]; //设置小圆圈的个数 page.numberOfPages = 15; //设置 小圆圈的颜色 page.pageIndicatorTintColor = [UIColor orangeColor]; //设置当前页的小圆圈颜色 page.currentPageIndicatorTintColor = [UIColor redColor]; //获取/更改当前页 page.currentPage = 1; //增加点击事件 [page addTarget:self action:@selector(pageClick:) forControlEvents:UIControlEventValueChanged];
以上是来客网(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。
如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。
以上是来客网为你收集整理的iOS关于UIPageControl的基本属性全部内容,希望文章能够帮你解决iOS关于UIPageControl的基本属性所遇到的程序开发问题。
如果觉得来客网网站内容还不错,欢迎将来客网网站推荐给程序员好友。