you can use
myuiscrollview.pagingEnabled = YES;
for a simple method, which means that the scroll view will stop at several of its corresponding axis boundaries.
But if you want to get a little smarter, you can use the delegate method
- (void)scrollViewDidScroll:(UIScrollView *)scrollView
and use the property contentOffsetto stop at the desired point.
source
share