2

I have a UIScrollView that contains 2 UIImageViews. I turn on the pagination properties and am able to scroll vertical pages (480). Now I want to add another UIImageView that will act as separator between the images and keep the vertical scrolling height. Means that every time I'll scroll, I'll see the separator but stop on the full image. Thanks.

0xc0de
  • 8,028
  • 5
  • 49
  • 75
  • Are you trying to scroll the UIScrollView and keep the separator static on the screen over the UIScrollView? If yes, then you can just add the separator view (whatever it is) to the main view, not to the UIScrollView - but add it after the UIScrollView - so that it would be displayed over it. – Aleks G Jan 28 '12 at 11:44

1 Answers1

0

This UIView method might do the trick: hitTest:withEvent:

See UIScrollView Custom Paging

Community
  • 1
  • 1
basvk
  • 4,437
  • 3
  • 29
  • 49