I do not quite understand the method convertPoint:toView:
.
In Apple's documentation it is written that
convertPoint:toView:
Converts a point from the receiver’s coordinate system to that of the specified view.
- (CGPoint)convertPoint:(CGPoint)point toView:(UIView *)view
But what does converting a point from one to the other actually mean?
Does it imply that the points in both bounds have different units? Or just different values?
If it is the latter, why is there such a method when we can simply assign the value of a's contentOffset
to b's ?
CGPoint a = [a contentOffset];
[b setContentOffset:a];
How is convertPoint:toView:
different from simply assigning contentOffset
? Or did I misunderstand the entire concept? What does converting points actually do? When should this method be used?