Problem in using UIScrollView

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

  1. macrumors 6502

    Joined:
    May 9, 2008
    Location:
    Bangalore
    #1
    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. macrumors newbie

    Joined:
    Jun 24, 2008
    #2
    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.
     
  3. macrumors newbie

    Joined:
    Apr 5, 2011

Share This Page