ios - Set container view height to nib loaded subview height -
i loading subviews different .xib files , adding them container view. problem can't figure out how make container view's height automatically adjust subview. when access subview.frame.size.height
comes correct value. example, 44. when set height of containerview making rect containerview.frame = gcrectmake(0, 0, containerview.frame.size.width, 44)
not work , keeps original height. have tried [containerview sizetofit:subview.frame.size]
no avail.
Comments
Post a Comment