Re: Constraints Question

2012-10-04 Thread Matt Neuburg
On Sat, 29 Sep 2012 17:52:23 -0400, Eric Gorr said: >I am trying to wrap my head around the auto-layout functionality. There are at least three (count them three) WWDC 2012 videos about this, and I strongly recommend that you touch *nothing* until you have watched all of them. m. -- matt neubu

Re: Constraints Question

2012-09-29 Thread Jonathan Hull
You probably want to set the content hugging priority of the button to a lower value (probably UILayoutPriorityDefaultLow). By default, buttons have an intrinsic constraint that says they don't like to grow vertically (it likes to "hug" its content strongly in the vertical direction). [myButto

Constraints Question

2012-09-29 Thread Eric Gorr
I am trying to wrap my head around the auto-layout functionality. I have a sample project at: http://ericgorr.net/cocoadev/constraints.zip After opening the project, take a look at ELGFirstViewController.xib. This app will only be used in landscape. On this XIB, there are three object