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

store cgpoint in userdefaults iOS swift

libc++abi: terminating due to uncaught exception of type NSException iOS swift