UICollectionViewCell and UIScrollView and autolayout
UICollectionViewCell and UIScrollView and autolayout
- Subject: UICollectionViewCell and UIScrollView and autolayout
- From: Torsten Curdt <email@hidden>
- Date: Mon, 26 May 2014 17:00:03 +0200
I've built a little demo project where I am struggling with autolayout.
https://github.com/tcurdt/paging-and-zooming
I basically have a fullscreen collection view to page through some
scroll views that allow zooming into an image.
When the UICollectionViewCells are being configured
https://github.com/tcurdt/paging-and-zooming/blob/master/Paging/TCPagingView.m#L159
autolayout has assigned a frame to the cell. But somehow the
UIScrollView is still at CGRectZero ...and somehow I cannot convince
autolayout to assign the proper frame.
Oddly enough it still show the image though - I just cannot center the
scroll view.
My head hurts. If someone with some more autolayout experience could
share some wise word - that would be awesome.
cheers,
Torsten
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden