I\'m facing with a simple but tedious problem. What I\'m trying to do is make an UITableView to page like an UIScrollView but enabling paging doesn\'t help me so much because I
This works like real paging:
- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView
withVelocity:(CGPoint)velocity
targetContentOffset:(inout CGPoint *)targetContentOffset
{
int tomove = ((int)targetContentOffset->y % (int)self.tableView.rowHeight);
if(tomove < self.tableView.rowHeight/2)
targetContentOffset->y -= tomove;
else
targetContentOffset->y += (self.tableView.rowHeight-tomove);
}
and make this in -viewDidLoad:
self.tableView.decelerationRate = UIScrollViewDecelerationRateFast;