2

从 Apple 的教程看来,UIPageControl 依赖于 UIScrollView。我可以单独使用 UIPageControl 在控制器之间导航吗?如果可能的话,有没有我可以阅读的示例[或可能的代码片段]?UIPageControl 和 UIScrollView 是什么关系?

谢谢你的帮助

4

2 回答 2

2

Fluchtpunkt 是正确的。根本没有关系(除了他们经常在一起)。

这是 UIPageControl 的链接

http://developer.apple.com/library/ios/#documentation/uikit/reference/UIPageControl_Class/Reference/Reference.html

既然你问...用你自己的自定义图形编写你自己的 PageControl 来满足你自己的需求和品牌是非常容易的。让我知道是否对某些代码感兴趣。

于 2011-05-01T14:48:20.470 回答
0

There is no relationship between those two. You can use an UIPageControl for whatever you want.

于 2011-05-01T14:46:05.703 回答