Top "Autolayout" questions

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

Using Auto Layout in UITableView for dynamic cell layouts & variable row heights

How do you use Auto Layout within UITableViewCells in a table view to let each cell's content and subviews determine …

ios uitableview autolayout row-height
How to add constraints programmatically using Swift

I'm trying to figure this out since last week without going any step further. Ok, so I need to apply …

ios swift uiview autolayout nslayoutconstraint
How do I size a UITextView to its content?

Is there a good way to adjust the size of a UITextView to conform to its content? Say for instance …

ios cocoa-touch autolayout uikit uitextview
How to get StackPanel's children to fill maximum space downward?

I simply want flowing text on the left, and a help box on the right. The help box should extend …

wpf xaml autolayout autoresize dockpanel
How do I animate constraint changes?

I'm updating an old app with an AdBannerView and when there is no ad, it slides off screen. When there …

ios objective-c animation autolayout ios6
UIScrollView Scrollable Content Size Ambiguity

Fellow devs, I am having trouble with AutoLayout in Interface Builder (Xcode 5 / iOS 7). It's very basic and important so I …

ios swift uiscrollview autolayout interface-builder
UICollectionView Self Sizing Cells with Auto Layout

I'm trying to get self sizing UICollectionViewCells working with Auto Layout, but I can't seem to get the cells to …

ios uicollectionview autolayout uicollectionviewcell
Cocoa Autolayout: content hugging vs content compression resistance priority

I can't find a clear answer on Apple documentation regarding Cocoa Autolayout about the difference between content hugging and compression …

cocoa autolayout
How to use auto-layout to move other views when a view is hidden?

I have designed my custom Cell in IB, subclassed it and connected my outlets to my custom class. I have …

ios iphone cocoa-touch interface-builder autolayout
When is layoutSubviews called?

I have a custom view that's not getting layoutSubview messages during animation. I have a view that fills the screen. …

ios cocoa-touch autolayout bounds layoutsubviews