From Apple sample \"PageControl\" we can know that UIPageControl can be used to control movement of pages in scrollview.
As UITableView is subclass of UIScrollView,I wan
It sure is possible, but why would you want this? A table view scrolls vertically, while a page control has a horizontal layout, so it would probably look/feel weird.
Anyway, if you really want to do this, add your view controller as a target of the page control:
[pageControl addTarget:self action:@selector(pageChanged:) forControlEvents:UIControlEventValueChanged];
Then implement the scrolling in the action:
- (void)pageChanged:(UIPageControl *)sender {
float scrollPosition = ((float)sender.currentPage / (float)sender.numberOfPages) * tableView.contentSize.height;
[tableView scrollRectToVisible:CGRectMake(0, scrollPosition, 1, 1) animated:YES];
}