I would recommend using UIScrollViewwith the property pagingEnabledset to YES.
This will make it a reference to multiplying its viewing boundaries. Therefore, if your view is 640 wide and your image is 1280 wide, it will be located between the first and second half.
source
share