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.

What's with Constraints in SwiftUI?

What is happening now with constraints in SwiftUI? Do View types adapt automatically for bigger devices etc. or what should …

ios swift constraints nslayoutconstraint swiftui
How to resize a parent view based on the size of subviews layouted with Autolayout

I am preparing a custom view which looks similar to the example shown in the screenshot. I add all user …

objective-c cocoa resize autolayout nslayoutconstraint
Correct way to delete a NSLayoutConstraint

In my apps I'm working a lot with constraints, in most cases with animations as well. In certain circumstances I …

ios xcode swift autolayout nslayoutconstraint
activateConstraints: and deactivateConstraints: not persisting after rotation for constraints created in IB

The new NSLayoutConstraint methods activateConstraints: and deactivateConstraints: don't appear to work correctly with IB-created constraints (they do work correctly for …

ios cocoa-touch autolayout nslayoutconstraint
What is the difference between all these Auto Layout update methods? Are all necessary?

In the code below, these four methods are called for layout reasoning. I'm a little confused why all of them …

ios objective-c uiview autolayout nslayoutconstraint
What is _UITemporaryLayoutWidth and why does it break my constraints?

I have a storyboard with Autolayout and Size Classes. Pretty complicated layout, and unfortunately I can't really pin down how …

ios autolayout nslayoutconstraint
iOS Auto-Layout: Dynamic height for table view cell

I have a table view with a bunch of cells (custom cell, which only has its content view). In tableView:…

ios uitableview autolayout nslayoutconstraint row-height
UITableViewCell - constraints only updated after reload

I have a custom UITableViewCell in which I have a UIView that contains multiple subviews. Depending on the cases, I …

ios objective-c uitableview nslayoutconstraint reusability
how can I use one storyboard for 4" and 3.5" iphone screens with autolayout (ios6 + ios7)?

While there are many questions and answers about building a storyboard layout that would work both on 4" and 3.5" screen sizes, …

ios iphone interface-builder autolayout nslayoutconstraint
Autolayout: origin and size should change according to width and height factor

Here is a scenario what I needed. I have put a UIButton on IB (size iPhone4 inch) whose initial frame …

ios autolayout nslayoutconstraint iphone-6 adaptive-ui