UIPageControl控制页数的点点间距怎么调节?求大虾指教~

解决方案 »

  1.   

    sizeForNumberOfPages:
    Returns the size the receiver’s bounds should be to accommodate the given number of pages.- (CGSize)sizeForNumberOfPages:(NSInteger)pageCount
    Parameters
    pageCount
    The number of pages to fit in the receiver’s bounds.
    Return Value
    The minimum size required to display dots for the page count.
      

  2.   

     sizeForNumberOfPages 
    不是刚刚有人发过了吗?怎么又开一贴?
      

  3.   

    sizeForNumberOfPages就是说你可以根据具体有几页来设置起大小,传入的是一个CGSize数据结构的的值...
    比如3页,你可以是CGSizeMake(20*3,20);
      

  4.   

    jiong,是我没有描述清楚吗?我想问一下这个怎么用,是直接在pagecontrol里面重写一下还是不用重写使用的时候直接调用?
      

  5.   

    KAO 刚才试了一下,居然调节它的W就可以
    不信,你用IB试试
      

  6.   

    jiong,后来不需要那么多页数了,最后这个问题没有解决。