I am attempting to create a “metro” styled UIScrollView. It is similar to how iTunes app handles panels in the new ios version which wont be named.
I can’t figure out how to have my views layout/scroll so that the next view in the sequence shows up. I’ve tried all sorts of things like keeping the contentSize the screen width but moving each view over -10ish so it will show up like above. I’ve tried making scrollView whose bounds were smaller than the screen so it would show the part of the next view. Nothing works.
Here is diagram of what I’m trying to do:

It seems extremely trivial on paper but I can’t seem to get it work.
I’m not sure if I’m misinterpreting your requirements – but this might be a starting point to see how you could set it up:
Literally just put this in an empty viewController’s
viewDidLoad:The key things to note are
contentSizeneeds to be wide enough for all the panelsclipsToBoundsshould beNOso you can see the additional viewspagingEnabledshould be setpanGestureRecognizerfrom the scrollview and attached it to the containing view instead so that panning is detected in the bounds of the containing view (which is larger) otherwise you are restricted to only detecting scrolls within the scrollviews bounds