Converting a CGRect of a object in a subview in UITableViewCell in UITable to CGRect with respect to
Posted
by user362956
on Stack Overflow
See other posts from Stack Overflow
or by user362956
Published on 2010-06-09T22:57:48Z
Indexed on
2010/06/09
23:02 UTC
Read the original article
Hit count: 166
Hey, I want to converte a CGRect "aRect" of a object in a subview in UITableViewCell in UITable to CGRect with respect to self.view.
The problem is that aRect is with respect to the subview in the table cell. But i want to make it so that it is with respect to self.view
What i tried is this rect = [self.view convertRect:aRect.frame toView:cellView]; but it doesn't work.
So how to convert it?
© Stack Overflow or respective owner