scroll - How to create a horizontal scrolling view for the iPhone? -


Safari does this with web pages containing tabs. This appstore (3.0) is with the preview images of the app. Visual Horizontal Form Scroll with and focus centered on each scene. Any idea how to complete this?

You need it:

  1. Scroll with a paging enabled Scene, three screen wide.
  2. There are three SubViews - L (left material, at 0,0), C (center material, at 320,0), R (right material, at 640,0) in your scroll view. Which you want to show in the beginning L to display the content that the user has left scrolling.
  3. Set the portfolio of 320 to scrollview (for portrait mode), because you want to display C initially, not l.
  4. Every time a book is finished, an integer of the content opt-screen will be multiple if you are still displaying the display (content is offset 320), then you are ok if the content offset is now 0 or 640, So you have some work.

If the user has left the scroll - you have the same view hierarchy, but now ScrollView is showing L compared to C because the content offset is 0 with a scroll offset of 0. Now you should reset all the content so that you have a scrolloff of XLC and 320, if the user wants to scroll again, in other words, the new R becomes, the new C becomes new, and the new to display x Content is if the user leaves the scroll again.

The way to override this is:

  (zero) scrollViewDidEndDecelerating: (UIScrollView *) scrollView  
< / Html>

Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -