objective c - dynamically resizing view height -
i've seen many questions regarding topic, yet cannot find 1 satisfactory answer. i've created sample view using interface builder, attached below: layout sample
now text content dynamic, , when have list of such views 1 underneath other, strange state in views overlap each other. looking simple way view resize itself, or @ least expend size of subviews.
all explanations find have single label, in manual calculations of size. there no simple mechanism provided coca toch this?
thank you
you have subclass superview containing other items. override -layoutsubviews method , in method calculate sizes , reposition subviews.
Comments
Post a Comment