You have a subview nested in a view hierarchy and want to find the new coordinate of the subview in the coordinate system in another view.
Say you created a view hierarchy like this:
UIView *subview1 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 20, 20, 300, 300);
UIView *subview2 = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 30, 30, 200, 200);
To find the coordinate of subview in the view controller view coordinate system, use the following code:
CGPoint point = [subview1 convertPoint:subview2.frame.origin toView:self.view];
UIView Class Reference