Re: How to get variably sized header in a UICollectionView supporting both orientations
Re: How to get variably sized header in a UICollectionView supporting both orientations
- Subject: Re: How to get variably sized header in a UICollectionView supporting both orientations
- From: David Hoerl <email@hidden>
- Date: Fri, 04 Oct 2013 20:46:00 -0400
You could also do something like add a class method to your cell class that creates a non-queued instance (if necessary to the calculation) and calculates the cell height based on whatever goes into determining it. That avoids mucking around with the collection view's queue.
What I'm currently doing is just creating an object with alloc/init
(well I use "new"), and setting a portrait property on it and getting
the size, the setting the landscape property, then getting that size.
Its not that this doesn't work, it just seems odd with Apple's push for
dynamic type, and better rotation support.
_______________________________________________
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