Re: UILabel's sizeToFit - only on re-used cells
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