Changing the page size of a paged UIScrollView
Hi!
I've an interesting issue here. I've changed the frame size of a UIScrollView, and reset the contentOffset to where I want it to be. The new size is a quarter of the old size, and the offset is somewhere in what would have been page 1 (i.e. the second page), and is now page 7 (i.e. the eighth page). However, if I click on the view at all, the scrollview scrolls to what is now page 4 (i.e. the fifth page on my new size, and what would have been the beginning of the page on the old size).
When I scroll after this, it works fine, and uses the new page size perfectly.
Anyone any ideas why this might be happening? Do I need to do something to get it to re-calculate the paged size? I've tried setting pagingEnabled to no and back to yes, but that didn't help.
|