• 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: Autolayout Freespace
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autolayout Freespace


  • Subject: Re: Autolayout Freespace
  • From: Charles Srstka <email@hidden>
  • Date: Thu, 12 Dec 2013 03:05:53 -0600

On Dec 11, 2013, at 11:54 PM, Luther Baker <email@hidden> wrote:

> And just to clarify, if I need to do some manual calculation, would I be
> using frames, etc? "Frame" feels like such a dirty word in autolayout
> world; is there something else specific to autolayout (like intrinsic size
> - obviously not in this case) ...
>
> Also, if I need to do some manual calculation, would I do that in the
> view's layoutSubviews - and would I remove and create constraints in that
> method also - and then tell them to lay themselves out again from that
> method as well?

You could just create width constraints for your views in IB, and give your controller outlets to the constraints themselves. You could then adjust the "constant" property on the constraints in code. The documentation claims that this performs better than removing constraints and adding new ones.

Charles

_______________________________________________

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: 
 >Autolayout Freespace (From: Luther Baker <email@hidden>)
 >Re: Autolayout Freespace (From: email@hidden)
 >Re: Autolayout Freespace (From: Luther Baker <email@hidden>)

  • Prev by Date: Re: iPad keyboards
  • Next by Date: Re: iPad keyboards
  • Previous by thread: Re: Autolayout Freespace
  • Next by thread: Re: iPad keyboards
  • Index(es):
    • Date
    • Thread