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.
UIImageView
self.view
UIButton
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];
1.4m articles
1.4m replys
5 comments
57.0k users