Re: Put UICollectionView within UITableViewCell
Re: Put UICollectionView within UITableViewCell
- Subject: Re: Put UICollectionView within UITableViewCell
- From: Glen Huang <email@hidden>
- Date: Sat, 10 Mar 2018 16:23:41 +0800
I’ll give it a shot, thank you very much
> On 10 Mar 2018, at 10:27 AM, Cosmo Birch <email@hidden> wrote:
>
> 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
_______________________________________________
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