I have an UIImageView
in the self.view
(the main View) and inside it there is a UIButton
. I want to know what's the frame of UIButton
in self.view
not in UIImageView
.
I guess you are looking for this method
// Swift
let frame = imageView.convert(button.frame, to: self.view)
// Objective-C
CGRect frame = [imageView convertRect:button.frame toView:self.view];