I read through the code in the UIScrollView but it's kinda hard to follow. Could you provide some code snippet to "calculate the position of the content relative to the scroll view's area " for my situation.
Edit1: For example, I don't quite understand this comment "Changes the drag amount of the scroll view to the specified 0-1 range values. (0, 0) is the top-left corner, (1, 1) is the bottom-right."
Edit2: Ok, finally figured this out.
1. To get the content bounding box, scrollView.bounds.size
2. dragAmt = thumbPosX/(scrollView.bounds.size.x);
3. scrollView.SetDragAmount(dragAmt,0,true);
Cheers.