bhartsb
bhartsb

Reputation: 1366

coordinates of a subview with respect to superview of superview

Given a viewController's view, self.view, and a subview referenced as self.Toolbar.contentView.rightButton, how to get the coordinates of rightButton in self.view's coordinate system?

Upvotes: 0

Views: 118

Answers (1)

dan
dan

Reputation: 9825

[self.view convertRect:self.Toolbar.contentView.rightButton.frame fromView:self.Toolbar.contentView]

Upvotes: 1

Related Questions