• 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: 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


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>)
 >Re: How to get variably sized header in a UICollectionView supporting both orientations (From: Steve Christensen <email@hidden>)
 >Re: 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: Steve Christensen <email@hidden>)

  • Prev by Date: Re: How to get variably sized header in a UICollectionView supporting both orientations
  • 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: Autolayout fixed size centering in VFL
  • Index(es):
    • Date
    • Thread