Re: UICollectionViewCell and UIScrollView and autolayout
Re: UICollectionViewCell and UIScrollView and autolayout
- Subject: Re: UICollectionViewCell and UIScrollView and autolayout
- From: Torsten Curdt <email@hidden>
- Date: Mon, 26 May 2014 17:56:32 +0200
OK, so it seems I explicitly need to call
[cell setNeedsLayout];
[cell layoutIfNeeded];
after the cell is configured.
I didn't think the `layoutIfNeeded` was necessary. That's a bit of a surprise.
The centering of the `UIScrollView` is still a bit funky though.
Based on the `contentOffset` it works - except for the weird jumping on release.
The `contentInset` approach does not work until you zoom.
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