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 UI
UIImageView
self.view
UIButton
UI
I guess you are looking for this method
– convertRect:toView:
// Swift let frame = imageView.convert(button.frame, to: self.view) // Objective-C CGRect frame = [imageView convertRect:button.frame toView:self.view];