UIScrollView or UIPageViewController

I am working on an application for iOS5. I would like to have a large picture in a small frame, at one time only a part of the image will be shown in this frame. When the user moves to the right or left, the image will move to the second half. I would like to ask you what should I use, UIScrollView or UIPageViewController? Or should I use something else? Thanks for all the tips.

+5
source share
2 answers

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.

+4
source

If you want the image to slide left or right, use UIScrollView(perhaps c is pagingEnabledset to YES). If you want a page spread effect, use UIPageViewController.

+3
source

All Articles