• 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: Programmatic autolayout problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programmatic autolayout problem


  • Subject: Re: Programmatic autolayout problem
  • From: Rick Mann <email@hidden>
  • Date: Mon, 25 Feb 2013 23:47:32 -0800

On Feb 25, 2013, at 23:44 , Kyle Sluder <email@hidden> wrote:

> You'll never see the constraints created for content hugging or compression resistance.
>
> IB refuses to let your interface be underspecified. If you remove a constraint necessary to fully specify your interface, it will tend to install fixed-size constraints that reflect your views' current frames.
>
> In the nib containing your subviews, is "translates autoresizing mask into constraints" turned off for your root view (that is, the superview of your text fields)? This needs to be on during design time to stifle IB's incredibly annoying behavior of inserting constraints to avoid underspecified interfaces. Right before you insert the subviews into the window's view hierarchy, turn off this property programmatically.

Heh, I was just about to write you a note complaining about how IB inserts constraints all the time. It really screws things up. I think I've finally figured out how a gray disabled width constraint can be removed. Add sufficient constraints, then size that thing to fit.

IB really needs to just flag the thing as unconstrained, and give me a button to "insert necessary constraints," but not do it automatically. It's nearly impossible to see the constraints as displayed graphically, and adding before removing just makes it that much harder.

Anyway, I think I finally have it correctly specified. Thanks for all your help, Kyle.


--
Rick




_______________________________________________

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: Programmatic autolayout problem
      • From: Kyle Sluder <email@hidden>
References: 
 >Programmatic autolayout problem (From: Rick Mann <email@hidden>)
 >Re: Programmatic autolayout problem (From: Kyle Sluder <email@hidden>)
 >Re: Programmatic autolayout problem (From: Rick Mann <email@hidden>)
 >Re: Programmatic autolayout problem (From: Kyle Sluder <email@hidden>)
 >Re: Programmatic autolayout problem (From: Rick Mann <email@hidden>)
 >Re: Programmatic autolayout problem (From: Kyle Sluder <email@hidden>)
 >Re: Programmatic autolayout problem (From: Rick Mann <email@hidden>)
 >Re: Programmatic autolayout problem (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Programmatic autolayout problem
  • Next by Date: Re: Programmatic autolayout problem
  • Previous by thread: Re: Programmatic autolayout problem
  • Next by thread: Re: Programmatic autolayout problem
  • Index(es):
    • Date
    • Thread