Resizing UIView to match its content
Posted
by Thody
on Stack Overflow
See other posts from Stack Overflow
or by Thody
Published on 2010-03-17T16:06:24Z
Indexed on
2010/03/17
22:31 UTC
Read the original article
Hit count: 268
iphone
|objective-c
I have a UITextField, a UIButton, and a UIWebView nested in a UIView, which is nested in a UIScrollView. After the UIWebView has loaded its content, I need it to resize the UIWebView and UIView so that the UIScrollView will scroll.
I currently have the UIScrollView getting its contentSize from the UIView, but I can't figure out how to do the resizing after the UIWebView's content has loaded.
© Stack Overflow or respective owner