views:

234

answers:

1

Hello,

In my iPhone app, I have a UIView inside the content view, and I have some controls inside the UIView. I've set the autosize properties for these controls in Interface Builder, but it seems that they're getting autosized relative to the whole content view, instead of relative to their superview. However, it specifically says in the documentation that autosize works relative to the superview. Is there something special I have to do to get my controls to be autosized relative to their superview, rather than the entire content view?

Please help... I've been banging my head over this for days. Thanks in advance!

A: 

Have you confirmed that your view hierarchy is what you think it is? I've seen cases from time to time when a view was placed over another view in IB, but it was not actually added as a subview.

NSResponder
Yeah, I checked in the Document Window in IB and confirmed that the controls really do have the parent view that I think they do... But it's strange, because when they autoresize, sometimes they even move out of the bounds of their parent view, without getting clipped or anything.
Eamon Ford