I've done quite a bit of looking into this but have been unsuccessful in finding a solution.
I have a UIScrollView called scrollView
inside of UIView. I'm using this scrollView
in pagingEnabled mode. Inside of scrollView
, I have 3 different views created programmatically. Inside of these 3 different views, I have a bunch of stuff(UILabel,UITextView etc.). All of the views contents are dynamic and determined at runtime.So, i really don't know scrollView.contentSize
. If i give the content size of this scrollView
,Sometimes ,I have a screen with white blank at the botton of the screen when user scrolls down. My question is : Can i set the content size dynamically for each single page of this scrollView
? For example,for page 1 :
self.scrollViewNews.contentSize = CGSizeMake(constant1,constant2);
And set something else for page 2 as well .