Re: Put UICollectionView within UITableViewCell
Re: Put UICollectionView within UITableViewCell
- Subject: Re: Put UICollectionView within UITableViewCell
- From: Cosmo Birch <email@hidden>
- Date: Fri, 09 Mar 2018 18:27:34 -0800
But you presumably know the width (i.e. the CollectionView width minus any
insets), and you can calculate the height based on that with NSString or
NSAttributedString boundingRect functions. Assuming you have a subclass for
your CollectionViewCell, you can add a method to return your cell height based
on its contents layout.
> On Mar 9, 2018, at 8:21 AM, Gary L. Wade <email@hidden> wrote:
>
> @Cosmo
>
> My collection items contain label, so I don’t know the exact sizes before
> hand.
>
_______________________________________________
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