This question already has an answer here:
- Make UICollectionView zoomable? 1 answer
I am confused. I have a UICollectionView
. I have my own UICollectionViewLayout
subclass (iow, I am not using the Flow thing). UICollectionView
instance is a subclass of UIScrollView
. It adds multiple subviews. But questions like Properly zooming a UIScrollView that contains many subviews seem to say that scrollable views should just have one subview to "scroll the whole view". Seems kind of an inconsistent marriage to me. I mean why does Apple give me a framework for making a multiple child view, and then stick them all in scroll view, which isn't supposed to work well?
So I'm curious how I should go about making my whole UICollectionView
(it's in a UICollectionViewController
subclass) zoomable. Do I need to implement various delegate methods and invalidate/manipulate the layout object, deriving the layouts based on some property I keep in my layout? Or is there some other mechanism?
Aside, why can't it just manipulate the zoomScale
property and do it automagically for me? Or am I missing some subtlety here?