0
votes
2answers
722 views

Can I use setFrame and autolayout on the same view?

I want to add padding to all of my buttons, so I subclassed UIButton, and among other changes, I wanted to add a fixed padding by using setFrame:. Everything was working, except for setFrame. I ...
5
votes
1answer
729 views

iOS Auto Layout: Equal Spaces to Fit Superviews Width [duplicate]

Possible Duplicate: Autolayout Even Spacing I'm trying to create a scrollable bar with buttons (similar to a UISegmentedControl). The superview is an UIScrollView. As soon as the buttons ...
9
votes
5answers
4k views

What is Auto Layout?

What is Auto Layout - what does it do, and is it an iOS 5 feature? Since the new iPhone 5 has a bigger screen, all the options on how to optimize your applications for it come down to Auto Layout. ...
3
votes
3answers
3k views

iOS: Multi-line UILabel in Auto Layout

I'm having trouble trying to achieve some very basic layout behavior with Auto Layout. My view controller looks like this in IB: The top label is the title label, I don't know how many lines it ...
3
votes
1answer
318 views

Auto Layout UILabels

I have three UILabels in my custom UITableViewCell. It might be that some UILabels will be empty (label.text == @"") - (UITableViewCell *)tableView:(UITableView *)tableView ...
2
votes
2answers
414 views

Unable to simultaneously satisfy constraints when animating

I have six user constraints setup with IB that look like this: H:|-(593)-[UIView(411)]-(20)-| V:|-(20)-[UIView(288)]-(396)-| I grow and shrink the view by changing the constraints and then calling ...