I programatically created a UISCrollView but i cant see the scrollbars/indicators.
UIScrollView * contentScrollView = [[UIScrollView alloc]initWithFrame:CGR
For the scroll view to scroll, the content size for the scroll view must be greater than its bounds. Please add this line and then check:
contentScrollView.contentSize=CGSizeMake(320, 250);
and also set the contentScrollView.bounces
to YES
and remove the line contentScrollView.showsVerticalScrollIndicator=YES
as you have first set the value to NO
and then YES
.
This should do the job.
contentScrollView.showsHorizontalScrollIndicator = YES;
contentScrollView.showsVerticalScrollIndicator = YES;