In some of the applications that come with the iPhone, such as the App Store and Mobile Safari, Apple uses a technique for paging-enabled
UIScrollViews that show a little bit of the neighbouring pieces of content instead of displaying a single view controller over the whole width of the screen. I think those previews are a really great UI element, since they're much easier to spot than the
UIPageControl which usually sits right below the UIScrollView. It shows the user that there is more (or no more) content right next to what they are currently seeing.
If you've ever used
UIScrollView's
pagingEnabled property, you probably know that this is not easily doable. The
UIScrollView will stop only at multiples of its frame's width and cannot be configured to stop at shorter intervals. I recently needed to implement a paging-enabled
UIScrollView and was trying to replicate this behaviour and found a way to implement these previews.
Read on for the full tutorial.
Read More
Latest Comments
Sun, 11.04.2010 14:10
I just solved this simply by o bserving notifications I neede d to track anyway. In my case these were delegate mess [...]
Thu, 01.04.2010 08:43
dj, I haven't checked that situation yet, but I should be able to give it some attentio n shortly. I'll get b [...]
Thu, 01.04.2010 08:40
the scrollView itself is not r esponding to any touches. for example, i added a button on t he scrollview and it doe [...]
Fri, 05.03.2010 23:34
Anya, sorry for not getting back to your earlier. You wil l have to leave some empty spa ce at the sides of your [...]
Sun, 28.02.2010 15:31
Thanks for this great referenc e, there is a little documenta tion about paging in scrollvie w. I have one issue tho [...]