Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要帮助UIPageControl。在我的应用程序中,我做了一个UISCrollView
UIPageControl
UISCrollView
宽度:640 身高:300 启用分页 仅水平滚动
宽度:640
身高:300
启用分页
仅水平滚动
- (void)viewDidLoad { [ScrollView setContentSize:CGRectMake (640, 300)]; [super viewDidLoad]; }
我想UIPageControl在用户滚动视图并超过 320 像素时更改页面编号,就像在 iPhone 跳板中一样。
试试这个教程,
http://www.edumobile.org/iphone/iphone-programming-tutorials/pagecontrol-example-in-iphone/