I have 3 view controllers, their corresponding views, and an additional view on top of these views.
The main view controller has a container view with corresponding view controller
The container VC has a tableView in it
I want certain points within the UITableView
's individual cell's frames to be represented as points in the main view controller's Animations coordinate system.
I am using convertPoint:toView
method. I am performing this in the main view controller. My question is should my code read like this?
[self.containerVC.tableVC.tableView convertPoint:CGPointMake(CGRectGetMidX(frame), CGRectGetMidY(frame)) toView:self.animations];
like this?
[self.containerVC.tableVC.view convertPoint:CGPointMake(CGRectGetMidX(frame), CGRectGetMidY(frame)) toView:self.animations];
or like this?
[self.containerVC.view convertPoint:CGPointMake(CGRectGetMidX(frame), CGRectGetMidY(frame)) toView:self.animations];
The "frame" parameter comes from an array in which the individual cell frames from the UITableView are stored.