iOS关于UIPageControl的基本属性

iOS关于UIPageControl的基本属性,第1张

概述iOS关于UIPageControl的基本属性

下面是内存溢出 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的基本属性所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1107876.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-29
下一篇2022-05-29

发表评论

登录后才能评论

评论列表(0条)

    保存