I know convertRect:toRect is the key, but I'm not sure what to call it. I have a subclass of my cell, and I want its position in the entire application window.
I need to know this when I click on this button (subview) in the target action method. I have to call the convertRect:toRect in the cell, I suppose, in order to get the correct coordinates, but in this method I have nothing to do with the cell itself.
Am I going up the supervisor hierarchy? This seems rude, because I'm not quite sure what I will get, since it is embedded in the contentView in the cell, and Apple does ridiculous things with their private subtitles and something else.
the code:
@IBAction buttonPressed(sender: UIButton) {
source share