• 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: UILabel's sizeToFit - only on re-used cells
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UILabel's sizeToFit - only on re-used cells


  • Subject: Re: UILabel's sizeToFit - only on re-used cells
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 15 Jan 2014 09:13:34 -0800

On Tue, 14 Jan 2014 11:44:46 -0800, Quincey Morris <email@hidden> said:

>The size of the cell you get from dequeueReusableCellWithIdentifier is meaningless until the cell gets added to the table view

Yes, but the size of the cell you get from `dequeueReusableCellWithReuseIdentifier:forIndexPath:` is meaningful and correct! That is a _major_ reason for preferring it; you can do layout here.

(Of course you can't do that if you are backwards-compatible to before its existence.)

m.

--
matt neuburg, phd = email@hidden, http://www.apeth.net/matt/
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html

_______________________________________________

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


  • Prev by Date: What are the conditions for NSManagedObjectContextObjectsDidChangeNotification to get posted?
  • Next by Date: UIButton over sliding UIImageView disappears until slide complete
  • Previous by thread: Re: UILabel's sizeToFit - only on re-used cells
  • Next by thread: Pushed nav controller not displaying?
  • Index(es):
    • Date
    • Thread