Top "Autolayout" questions

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

Auto layout UIScrollView with subviews with dynamic heights

I'm having troubles with UIScrollView using auto layout constraints. I have the following view hierarchy, with constraints set through IB: …

ios objective-c uiscrollview autolayout
Auto Layout (Constraints) Center 2 side by side views in a parent view

I'm trying to figure out how to do this with auto layout (iOS6) and constraints. Basically I have my large …

iphone ios constraints autolayout
How can I change constraints priority in run time

I have a view which has dynamic height and I am trying to change this view height priority in run …

ios objective-c autolayout constraints
How to update swift Layout Anchors?

Trying to find a solution to update multiple constraints for multiple UI elements on an event. I have seen some …

ios swift autolayout layout-anchor
iOS Autolayout: two buttons of equal width, side by side

I am currently having difficulty with AutoLayout. I am using interface builder and am trying to position two buttons of …

ios iphone xcode autolayout
Are NSLayoutConstraints animatable?

I am trying to animate up some views so that they are blocked by the giant keyboard in landscape. It …

ios animation autolayout
How to create a custom UITableViewCell programmatically using AutoLayout

I'm trying to implement a UITableView that will behave similarly to the timeline of a twitter client. Right now I'm …

ios objective-c uitableview constraints autolayout
Centering subview's X in autolayout throws "not prepared for the constraint"

I have a custom UIView subclass which is being initialized via a nib. In -awakeFromNib, I'm creating a subview and …

ios objective-c autolayout nslayoutconstraint uiview-hierarchy
Specifying one Dimension of Cells in UICollectionView using Auto Layout

In iOS 8 the UICollectionViewFlowLayout supports automatically resizing cells based on their own content size. This resizes the cells in both …

ios objective-c uicollectionview autolayout
"Auto Layout still required after executing -layoutSubviews" with UITableViewCell subclass

Using XCode 4.5 and iOS 6, I'm developing an app with a simple table view with custom cells. I've done this a …

objective-c ios xcode4.5 autolayout