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

Convert NsNumber, NSDate to String in iOS Swift

store cgpoint in userdefaults iOS swift