Problem in using UIScrollView

Discussion in 'iOS Programming' started by sujithkrishnan, May 26, 2008.

  1. sujithkrishnan macrumors 6502

    May 9, 2008
    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??
  2. eksor macrumors newbie

    Jun 24, 2008
    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.

Share This Page