zoukankan      html  css  js  c++  java
  • UIPageControl

    UIPageControl

    1.    numberOfPages // 设置有多少页默认为0

    // 2) 设置页数

       [pageControl setNumberOfPages:kImageCount];

    2.    currentPage  // 设置当前页

    [pageControl setCurrentPage:0];

    3.    pageIndicatorTintColor // 设置页码指示器颜色

     [pageControl setPageIndicatorTintColor:[UIColorblackColor]];

    4.    currentPageIndicatorTintColor // 设置当前页码指示器颜色

    [pageControl setCurrentPageIndicatorTintColor:[UIColorredColor]];

     

    5.添加分页控件的监听事件(监听值改变事件)

    [pageControl addTarget:selfaction:@selector(pageChanged:) forControlEvents:UIControlEventValueChanged];

     

    效果:

     

     

     

     

     

  • 相关阅读:
    服务器搭建Git
    BGP协议详解
    以太坊
    燃 * & *
    UML类图解析
    day8.文件操作
    python面试题汇总
    day5.字典
    day5.类型汇总
    day3,4总结程序
  • 原文地址:https://www.cnblogs.com/supper-Ho/p/6206836.html
Copyright © 2011-2022 走看看