Top "Autolayout" questions

Auto Layout is a constraint-based, descriptive user interface layout system for OS X and iOS.

UITextView that expands to text using auto layout

I have a view that is laid out completely using auto layout programmatically. I have a UITextView in the middle …

ios uitextview autolayout nslayoutconstraint
Remove all constraints affecting a UIView

I have a UIView which is placed on the screen via several constraints. Some of the constraints are owned by …

ios objective-c uiview constraints autolayout
setNeedsLayout vs. setNeedsUpdateConstraints and layoutIfNeeded vs updateConstraintsIfNeeded

I know that the auto layout chain consists in basically 3 different process. updating constraints layout views (here is where we …

ios objective-c autolayout nslayoutconstraint
AutoLayout with hidden UIViews?

I feel like it's a fairly common paradigm to show/hide UIViews, most often UILabels, depending on business logic. My …

ios objective-c autolayout
Emulating aspect-fit behaviour using AutoLayout constraints in Xcode 6

I want to use AutoLayout to size and layout a view in a manner that is reminiscent of UIImageView's aspect-fit …

ios objective-c xcode autolayout
UILabel sizeToFit doesn't work with autolayout ios6

How am I supposed to configure programmatically (and in which method) a UILabel whose height depends on its text? I've …

ios ios6 uilabel autolayout
autolayout - make height of view relative to half superview height

have been getting into autolayouts recently and I'm stuck on what seems like a really trivial problem example. I have …

ios xcode autolayout
What is NSLayoutConstraint "UIView-Encapsulated-Layout-Height" and how should I go about forcing it to recalculate cleanly?

I have a UITableView running under iOS 8 and I'm using automatic cell heights from constraints in a storyboard. One of …

ios uitableview cocoa-touch autolayout ios-autolayout
How can I use Autolayout to set constraints on my UIScrollview?

I have spent two days trying out the various solutions for Mixed and Pure Autolayout approaches to achieve what was …

ios uiscrollview storyboard autolayout
How can I set aspect ratio constraints programmatically in iOS?

I have used auto layout for my view controllers. I have set the V and H positions in constraints, but …

ios autolayout constraints nslayoutconstraint