PDA

View Full Version : Problem in using UIScrollView




sujithkrishnan
May 26, 2008, 05:43 AM
Hi all.

I tried using UIScrollView in my iPhone App.
The scrollview is displaying and i added some more labels and textfields, textviews into it successfully.
But the scrollview is not showing the scroll bars, both horizontal and vertical.
Doi want to implement the delegate methods???
Which are necessary if so??



eksor
Jun 24, 2008, 03:48 AM
Set the property "contentSize" which is type CGSize.

Just as a test try the following:

scrollview.contentSize = CGSizeMake( 320, 1000 ); // you'll be able to scroll up and down only as much as 1000px.

aravindhanarvi
Apr 6, 2011, 07:59 AM
for beginners.....
http://unconditionalloop.blogspot.com/2011/04/uiscrollview-programmatically.html