Top "Nslayoutconstraint" questions

NSLayoutConstraint is a constraint defines a relationship between two of user interface objects that must be satisfied by the constraint-based layout system.

Understanding multiplier in auto layout to use relative positioning

I am trying to understand how one can utilize Auto Layout to position items relative to other views percentage-wise. For …

ios autolayout nslayoutconstraint
When should translatesAutoresizingMaskIntoConstraints be set to true?

I've read the documentation. But I'm still not sure when I need to not set it to false. In the …

ios swift uitableview autolayout nslayoutconstraint
How to add Equal Spacing and equal width for button in iOS Auto layout

Am new to Auto layout constraints in Xcode. I have one Bottom View like UITabBar with 6 UIButtons. Without constraints I …

ios swift autolayout nslayoutconstraint
Building a titleView programmatically with constraints (or generally constructing a view with constraints)

I'm trying to build a titleView with constraints that looks like this: I know how I would do this with …

ios nslayoutconstraint
Hiding a UIView using AutoLayout constraints

From time to time I have a subview that I would like to remove from a layout. Not only should …

ios uiview autolayout nslayoutconstraint
NSLayoutConstraint in swift

I am trying to convert the following code to Swift: leftConstraint = [NSLayoutConstraint constraintWithItem:self.contentView attribute:NSLayoutAttributeLeft relatedBy:0 toItem:self.…

ios swift xcode6 nslayoutconstraint
What happens with constraints when a view is removed

The question I have is simple but I couldn't find any information in the documentation. What happens with layout constraints …

ios autolayout nslayoutconstraint
Where is the Xcode checkbox "Translates Autoresizing Mask Into Constraints"

In one of the WWDC 2012 videos, Auto Layout By Example, they demo an OS X app using Autolayout, and at …

ios xcode macos autolayout nslayoutconstraint
Enable + Disable Auto-Layout Constraints

I have a simple (I think) problem: I have a UIImageView, which I have set multiple constraints for in the …

swift nslayoutconstraint
Unable to make outlet connection to a constraint in IB

I am running XCode 5 with iOS 7. I need to dynamically change the height constraint of a UITextView prior to its …

ios interface-builder nslayoutconstraint outlet