PDA

View Full Version : UIScrollView and contentOffset




amalshah71
Aug 28, 2009, 06:34 AM
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

amal



amalshah71
Aug 30, 2009, 11:57 PM
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...