iphone - UIScrollView autoresizing content? -


if set uiscrollview height self.view.frame.size.height , setautoresizingmask:uiviewautoresizingflexibleheight when view loads uitabbarcontroller , uinavigationbar scroll view frame resizes suit.

however content size (set at: self.view.frame.size.height) doesn't change. fair enough guess - can't seem find autoresizing option that, why autoresize.

my fix set content size less frame height, content height of frame. (eg: set content size height 10points).

i'm wondering if best way go this, or if there's better way? i'm doing code in viewdidload.

thanks

tom

the uiscrollview's contentsize property define size of view displayed span&zoom. not have relation container (i.e. scrollview) size if need resize content according scrollview size, can overload layoutsubviews method so.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -