UIScrollView Triple Hidden Swap Problem

Background
I have an iPad application that should allow the user to navigate through groups of images. Each group is laid out in its own vertical UIScrollView (paged) so that the user can scroll up and down to see each image. Each of the UIScrollViews groups is placed in a single (only one in the application) external horizontal UIScrollView (also unloaded). This works great ... I can scroll up and down to view the images in a group and scroll left and right to go to the next or previous group.

Problem The
problem started when I needed to add scaling for each image. I accomplished this by placing each image inside my own UIScrollView. When the image is scaled, I can move around the image, and when I get to the top or bottom of the enlarged image, the UIScrollView groups of vertical pages to the next or previous image, as expected. Unfortunately, external horizontal scrolling will not be displayed in the next group when the image is enlarged, and I will pan the left or right edge.

Is there a better (more correct) approach than triple nesting of UIScrollViews or can I somehow jump to external horizontal scrolling?

Any help or suggestions would be greatly appreciated.

+3
1

, , , .

Xcode, scrollview, : https://bitbucket.org/reydan/threescrollviews

1 contentSize.width . , . , .

, , viewDidLoad. , 3 , 5 . scrollview . ... .

, , .

  • magenta = horizontal scrollview
  • =
  • = (, )
  • = UIImageView

, 10. - (UIView*)viewForZoomingInScrollView:(UIScrollView *)scrollView, nil, .

- , .

, , , . , , , , .

, , , , , scrollviews .

EDIT:

. :

  • , , ( , ). .

  • scrollview (), . bounces=false, , (, , , ). bounces=true, , , . , , , 50%. "".

  • , , .

  • - , scrollviews , . , .

+1 .

EDIT 2013

, scrollviews - - : (

( ... 2 ). , . : https://github.com/reydanro/TripleNestedScrollViews

, / .

, , . 1 . . .

, , , .

UIGestureRecognizer, scrollviews. , contentArea, . , , scrollview

, . , , .

PS: , , , ( ).

+7

All Articles