When I add a subview to a UIView, or when I resize an existing subview, I would expect [view sizeToFit] and [view sizeThatFits] to ref
You can do some like that using IB alone (xcode 4.5):
UIViewcontent hugging to 1 (both horizontal and vertical)compression resistance to 1000 (for both)constraints click on Width and change priority to 250UIView's inset to control padding for left/right/top/bottom