How to get the UITextField Y axis Coordinate on UIView level

Solution:


            let textFieldY = textField.convert(textField.frame.origin, to:self.view).y

The above will calculate the y position of the textfield that is inside the tableview cell from the UIView level.

Comments

Popular posts from this blog

How to blink a button iOS swift?

Convert NsNumber, NSDate to String in iOS Swift

Parse the value from string value iOS swift