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
Thu, 05.05.2011 21:12
Very kind of you to share this , Alexander. A couple of minor corrections, if I may: In your addObservers:... me [...]
Mon, 02.05.2011 01:15
blog.proculo.de site is cool . Bookmarked !!! [url=http ://betonufc.info]ufc betting[/ url]
Tue, 05.04.2011 21:10
You may find it interesting to note that I have now decided to return the Android phone I bought and go back to an [...]
Tue, 05.04.2011 18:10
I have an Android device and f or me, it's not the UX of the OS that's the problem. Thanks to the dedicated keys, a [...]
Tue, 05.04.2011 17:41
Matthew, note that I never said Mark shouldn't have switc hed to an Android phone. If th at is his choice, and he [...]