All Questions

1274
votes
26answers
435617 views

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 the row height (itself/automatically), while maintaining smooth scrolling performan...
28
votes
5answers
24043 views

AutoLayout, Unable to simultaneously satisfy constraints

Just started learning iOS AutoLayout, Interface builder very straight forward, but when I try to archive the same thing on the code [self.view addConstraints:[NSLayoutConstraint constraintsWithV...
1
votes
2answers
812 views

IOS AutoLayout Change position on Rotation

I wanted to sent one container below the other on portrait and side by side on landscape. Is it possible with just auto layout? I know i can do it programmatically, just wondering if it is possible to...
3
votes
1answers
1278 views

Autolayout programmatically doesn't work

I want to add programmatically an UIImageView to a view and add constraints to center it, vertically and horizontally. With the storyboard it's works but not programmatically. class ViewController: U...
13
votes
2answers
2268 views

Strange exception in layouts

Try call this method: avatarIconImageView.setContentHuggingPriority(UILayoutPriorityDefaultLow, forAxis: UILayoutConstraintAxis.Horizontal) and catch this exception: Undefined symbols for archi...
5
votes
2answers
5534 views

Can subviews resize their superview automatically with auto layout?

If you have a view with no constraints on it, and that view has a subview with left, right, top and bottom constraints of equal size, if the subview's size is increased is it possible for the supervie...
2
votes
1answers
2027 views

iOS 8 CGAffineTransformMakeScale + autolayout not working any more

There seems to be a some post related to my problem but none seems to help. How do I adjust the anchor point of a CALayer, when Auto Layout is being used? I have a scaled preview of my app (as a tuto...
2
votes
3answers
5823 views

Why auto layout constraints not working?

I'm setting constraints in IB like But when i run the app on iPhone4 it shows Why last three buttons not shown properly on iPhone4 screen?is there any mistake in my constraints ? Edit:- This is my...
0
votes
3answers
188 views

Swift Constraints in Subclass

I was wondering if there was a way to access constraints from a subclass. I have a custom view. I'm not sure if I can access the constraint I already have set in the UI, so I tried just creating the c...
0
votes
1answers
377 views

Complex AutoLayout for Cell with dynamic size

I have a cell that contains a container with 10 subviews (two of them are simply bounds and the others are labels). The scheme looks like this. Dynamic labels may contain huge text so the cells sh...

Previous Next