#pragma -mark UITextFieldDelegate Methods
- (void)textFieldDidBeginEditing:(UITextField *)textField{
self.tableView.contentSize = CGSizeMake(self.tableView.frame.size.width, self.tableView.contentSize.height + 300);
CGPoint textfieldPoint = [textField convertPoint:CGPointMake(0, 70) toView:self.tableView];
NSIndexPath *textIndex = [self.tableView indexPathForRowAtPoint:textfieldPoint];
CGRect rect = [self.tableView rectForRowAtIndexPath:textIndex];
self.tableView.contentOffset = CGPointMake(0, rect.origin.y - 200);
}
- (void)textFieldDidEndEditing:(UITextField *)textField{
self.tableView.contentSize = CGSizeMake(self.tableView.frame.size.width, self.tableView.contentSize.height - 300);
}