• 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: IB keeps changing my constraints when I resize the cell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: IB keeps changing my constraints when I resize the cell
      • From: Rick Mann <email@hidden>
References: 
 >IB keeps changing my constraints when I resize the cell (From: Rick Mann <email@hidden>)

  • Prev by Date: IB keeps changing my constraints when I resize the cell
  • Next by Date: Re: IB keeps changing my constraints when I resize the cell
  • Previous by thread: IB keeps changing my constraints when I resize the cell
  • Next by thread: Re: IB keeps changing my constraints when I resize the cell
  • Index(es):
    • Date
    • Thread