Top "Autolayout" questions

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

Get UITextView dynamic height with auto layout after setting text

I have a UITextView not scrollable with auto layout set by interface builder, and the text increase or decrease dynamically …

ios objective-c autolayout uitextview
Autolayout aspect ratio for UIImageView / UIView

How to set autolayout for UIImageView /UIView so that the image view width and height increases a bit for iphone 6 …

ios uiview uiimageview autolayout xib
Proper usage of intrinsicContentSize and sizeThatFits: on UIView Subclass with autolayout

I'm asking this (somehow) simple question just to be finicky, because sometimes I'm worried about a misuse I might be …

ios objective-c uiview autolayout cgsize
iOS Autolayout with UIScrollview: Why does content view of scroll view not fill the scroll view?

The following code (called in viewDidLoad) results in a fully red screen. I would expect it to be a fully …

ios ios6 uiscrollview autolayout
Multiple UILabels inside a self sizing UITableViewCell

In this iOS 8 app I'm creating, I have a tableview and I need them to be self resizing. I implemented …

ios uitableview swift autolayout ios8
UITableView within UIScrollView using autolayout

At the moment, I'm using a UITableView along with other views that are contained in a UIScrollView. I want the …

ios uitableview uiscrollview autolayout nslayoutconstraint
What is the content compression resistance and content hugging of a UIView?

What is the content compression resistance and content hugging of a UIView? How do these relate to the intrinsic content …

ios cocoa-touch uiview autolayout
Auto Layout in UICollectionViewCell not working

I have a simple UICollectionView with cells that have a single UITextView. The UITextView is constrained to the edges of …

ios uicollectionview autolayout uicollectionviewcell
Where should I be setting autolayout constraints when creating views programmatically

I see different examples where constraints are set. Some set them in viewDidLoad / loadView (after the subview was added). Others …

ios cocoa-touch autolayout
Layout issues after updating to Xcode 8

Here is a before and after of one of my screens after I upgraded to Xcode 8.All I did was …

ios xcode autolayout xcode8 ios10