UIScrollView and contentOffset

Discussion in 'iOS Programming' started by amalshah71, Aug 28, 2009.

  1. amalshah71 macrumors member

    Feb 1, 2009
    I have a subclass of UIScrollView.

    with frame as CGRectMake(0,0,320,460)

    and UIScrollView's contentSize as CGSize(320,1000)

    say for eg a scroll event takes place and contentOffset moves to (0,500)

    Now when next time a scroll event starts the contentOffset resets itself to (0,0) and then the scrolling action takes place besides starting from (0,500) where it left previously

    Am i missing something to prevent restting of contentOffset

  2. amalshah71 thread starter macrumors member

    Feb 1, 2009
    such a thing seems to be happening with SDK 2.2.1 and below but not with 3.0...

    with 3.0 it worked perfectly fine...

Share This Page