Basically my question would really be, would there be a problem if I set the content size width or height of a scroll view to zero (0).
For example: scrollView.contentSize = CGSizeMake(100,0);
Basically I’m trying to disable the vertical scroll. I tried to set the content size height same as the actual scroll view height. But apparently it’s not working. It has this small extra chunk of space thus making vertical scrolling possible. I tried using zero as the content size height and it worked like a charm.
Problem here now is that I’m thinking if there might be consequences in doing this. If there is someone who knows please inform me.
Thanks.
If you display the
contentSizeof aUIScrollViewbefore you change it, you’ll find it has been initialised to0,0. So, it’s probably safe to return it to that setting.