I have this problem.. I have a view that contains a uitableview with each column is on a different row (i开发者_高级运维s to editing a row, like the address book for example) everything is ok, but if I click on the last field on the bottom, the keyboard appears, but appear over the field and I can't see nothing....
how can I solve this thing?
thanks in advance
You may need to know whether the keyboard is showing up or not.
Register for a few notifications:
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWasShown:) name:UIKeyboardDidShowNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWasHidden:) name:UIKeyboardDidHideNotification object:nil];
Scroll the row in tableview to a visible position in the listeners:
keyboardWillShow
keyboardWasShown
keyboardWillHide
keyboardWasHidden
.
精彩评论