I need to scroll my table view when the keyboard is displayed. I know how to scroll the screen but I can not figure out how to determine how much scrolling is required.
My code determines which cell in a table view is being edited. I would like to figure out the location of that cell on the screen so I can determine if scrolling is required to prevent it from being hidden by the keyboard.
The contentView of the cell always has 0,0 origin. Is there any way to determine to actual location of the cell on the screen or determine the cells offset from the top of the view its parent view?
Is there an easier way to have the cell automatically moved so the keyboard does not hide it? I thought that would be automatic but in the UICatalog example they are programmatically scrolling the screen.
Thanks
Shawn
My code determines which cell in a table view is being edited. I would like to figure out the location of that cell on the screen so I can determine if scrolling is required to prevent it from being hidden by the keyboard.
The contentView of the cell always has 0,0 origin. Is there any way to determine to actual location of the cell on the screen or determine the cells offset from the top of the view its parent view?
Is there an easier way to have the cell automatically moved so the keyboard does not hide it? I thought that would be automatic but in the UICatalog example they are programmatically scrolling the screen.
Thanks
Shawn