Re: IB keeps changing my constraints when I resize the cell
Re: IB keeps changing my constraints when I resize the cell
- Subject: Re: IB keeps changing my constraints when I resize the cell
- From: Quincey Morris <email@hidden>
- Date: Sat, 15 Jun 2013 19:26:12 -0700
On Jun 15, 2013, at 18:48 , Rick Mann <email@hidden> wrote:
> I can leave the view 23 pixels high, and adjust the outline view's row height, but I'd rather it size automatically in case I add views of a different heigh later.
It doesn't work like that. A table cell view [prototype] has no predetermined height. Rather, a cell view is resized, just after being instantiated, for the row height of the row it was created for. Note that this means that the run-time height of each row must be known in advance of creating the cell view for the row.
What you see in IB is the design-time height of the cell view, which is deduced from the design-time row height of the table view. For the simplest case, this matches the run-time row height, but this isn't necessarily so (if you programmatically change the row height, or if you're going to use a variable row height).
So you should probably just adjust the row height.
_______________________________________________
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