0

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

View with container view as subview

The container VC has a tableView in it

Container View with UITableView as subview

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.

noobsmcgoobs
  • 2,716
  • 5
  • 32
  • 52
  • Are you asking which view should be responsible for performing the conversion? – jscs Dec 18 '15 at 06:06
  • Ping me if that doesn't answer your question, and if so please [edit] your question to make it clearer what you don't understand. – jscs Dec 18 '15 at 06:39
  • @JoshCaswell You obviously made a rash judgement of the question and did not even read the question which prevented other users from looking at the question which means that I didn't get an answer to my specific question in this case. The question is quite clear. If you cannot even bother to read the question or understand it, I suggest in the future you don't go around marking questions to your subjective judgement. – noobsmcgoobs Dec 21 '15 at 04:41
  • Actually, as it turns out, I was trying to help you get an answer as quickly as possible, and I even very politely told you to _just let me know_ if the linked question didn't solve your problem. Instead, you have decided to get mad at me. It's _not_ clear what you're asking; that's why I left my first comment above, so again, please [edit] to be more explicit about which part of the three lines of code you are trying to understand. – jscs Dec 21 '15 at 04:50

0 Answers0