I have a text field that is near the bottom of the screen. When the keyboard comes up, it covers the text field. I solved this problem by using the code in iPhone Keyboard Covers UITextField.
However, that code hardcodes how much views should move up or down. Is there a way that I can programmatically obtain the coordinates of my text field so that I can determine how much it needs to move up or down? This would be beneficial because I would not have to change the code if I ever decide to move this text field to a different location. Thank you.