//Converts a rectangle from the receiver’s coordinate system to that of another view
[view1 convertRect:view2.frame toView:view3]
注意:view1是view2的父视图,即view2的frame是相对于view1的(view1一般是scrollview)
view3这里认为是view1的父视图,可以得到滚动过程中view2相对于view3的frame
//Converts a rectangle from the coordinate system of another view to that of the receiver.
[view3 convertRect:view2.frame fromView:view1]这么写和上面代码的结果是一样的