Top "Ios-autolayout" questions

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

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 to adjust height of UICollectionView to be the height of the content size of the UICollectionView?

I would like the UICollectionView (The red one) to shrink to the height of the content size in this case …

ios swift uicollectionview nslayoutconstraint ios-autolayout
How to remove constraints programmatically that is added from storyboard?

I have googled but not find out answer. So I need to ask. I have one home screen. When User …

ios xcode-storyboard ios-autolayout
Swift dynamic table cell height

I have tableview with prototype cell, in the cell I have imageview and some text under. The text label is …

ios uitableview height ios-autolayout
UITableView dynamic cell heights only correct after some scrolling

I have a UITableView with a custom UITableViewCell defined in a storyboard using auto layout. The cell has several multiline …

ios uitableview ios8 autolayout ios-autolayout
What is 'Vary for Traits' in Xcode 8?

I am using AutoLayout and Size classes, but with release of iOS 10 and new Xcode 8.0, there is one new option …

ios xcode8 ios10 ios-autolayout
How do I set collection view's cell size via the auto layout

Hi I'm trying to resize the cell via the auto layout. I want display the cell by the 3 by 3. First …

swift uicollectionview uicollectionviewcell ios-autolayout
How can I create UIStackView with variable spacing between views?

I have a simple horizontal UIStackView with several UIViews stacked inside. My goal is to create variable spacing between views. …

ios9 ios-autolayout uistackview
How to set up different Auto Layout constraints for different screen sizes

I have a tableView with static cells. The cell contains an ImageView which fills it completely. And I have another …

ios swift uitableview uiimageview ios-autolayout
Xcode 7 add trailing/leading/top/bottom constraints

In Xcode 6, I could use the Editor menu to Pin: Leading Space to Superview Trailing Space to Superview Top Space …

autolayout xcode7 ios-autolayout