• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get variably sized header in a UICollectionView supporting both orientations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Steve Christensen <email@hidden>
  • Date: Fri, 04 Oct 2013 14:09:24 -0700

On Oct 4, 2013, at 1:52 PM, David Hoerl <email@hidden> wrote:

> But its really odd - and I'm thinking about a bug report on this - that the delegate has to provide the size before the view is even created.

It make sense if you think about it: it's asking for sizes so that scroll view contentSize can be set and the layout can be determined. It would be a lot more expensive to have to actually build each of the cells for the entire collection just to get their sizes. This sort of behavior also happens with UITableView and its various cells.


_______________________________________________

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


  • Follow-Ups:
    • Re: How to get variably sized header in a UICollectionView supporting both orientations
      • From: David Hoerl <email@hidden>
References: 
 >How to get variably sized header in a UICollectionView supporting both orientations (From: David Hoerl <email@hidden>)
 >Re: How to get variably sized header in a UICollectionView supporting both orientations (From: David Duncan <email@hidden>)
 >Re: How to get variably sized header in a UICollectionView supporting both orientations (From: David Hoerl <email@hidden>)

  • Prev by Date: Re: why isn't id<MyCellDelegate> an id?
  • Next by Date: Re: why isn't id<MyCellDelegate> an id?
  • Previous by thread: Re: How to get variably sized header in a UICollectionView supporting both orientations
  • Next by thread: Re: How to get variably sized header in a UICollectionView supporting both orientations
  • Index(es):
    • Date
    • Thread