1. 程式人生 > >Table View Cell中有TextField,實現介面隨鍵盤上升

Table View Cell中有TextField,實現介面隨鍵盤上升

在TableviewController中 

- (void) viewDidload

{

[[NSNotificationCenterdefaultCenter] addObserver:self

selector:@selector(keyboardWillShow)

name:UIKeyboardWillShowNotification

object:nil];

}

-(void) keyboardWillShow

{

// 在這裡改變介面, 

}