首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Iphone >

求指教,UIScrollView 中UIPageControl有关问题

2012-02-26 
求指教,UIScrollView 中UIPageControl问题UIPageControl控制页数的点点间距怎么调节?求大虾指教~[解决办法

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

[解决办法]
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.
[解决办法]
sizeForNumberOfPages 
不是刚刚有人发过了吗?怎么又开一贴?
[解决办法]
sizeForNumberOfPages就是说你可以根据具体有几页来设置起大小,传入的是一个CGSize数据结构的的值...
比如3页,你可以是CGSizeMake(20*3,20);
[解决办法]
原先一直以为要重写的丢人了~
[解决办法]
jiong,后来不需要那么多页数了,最后这个问题没有解决。。。。

热点排行