Views in iOS have the option to “Clip Subviews” which hides everything that overflows the view height. Is there any option for the opposite? I mean, instead of hiding the content, I’d like the view to expand vertically to accomodate the content.
Views in iOS have the option to Clip Subviews which hides everything that overflows
Share
Use the
autoresizingMaskproperty onUIViewto get the desired behavior:If this doesn’t do what you want, the only other option you have (AFAIK) is to subclass
UIViewand override-layoutSubviews.