Situation: Have a UITextField instance which is a subview of a UIScrollView.
Need: Screen relative coordinates of the UITextField instance
This sounds so simple but it eludes me.
Could someone give me some pointers on how to do this.
TIA
Situation: Have a UITextField instance which is a subview of a UIScrollView. Need: Screen
Share
The answer, tada:
textField.frame.origin.y + scrollView.frame.origin.y – scrollView.frame.contentOffset.y