Quote:
Originally Posted by byteeater
Hi,
I've a strange problem. I work with an UIScrollView which stores multiple UIView as subviews inside. Everything is fine, I have scrollbars, no problem. Then on a user input "next page" I remove all subviews from my UIScrollView and fill it with new subs. But then... the scrollbar indicators are not shown any longer.... they're gone!?
++++
I realized that this behaviour only occurs if I really scroll the (vertical) scrollbar. So 1) alloc UIScrollView 2) add subviews 3) remove subviews 4) add new subviews ==> scroll = works! --- BUT 1) alloc UIScrollView 2) add subviews 3) scroll the view 4) remove subviews 5) add new subviews ==> scroll = DOES NOT WORK (scrollbar is simply not there...) !
++++
Any idea?
Best Regards,
b--
|
Are you re-setting the UIScrollView.contentSize after each time you add subviews to it?