I have UITableView and inside that TableView I have a custom cell which contains label and textfield. Now when I use keyboardNotifier (keyboard arises) and when i tap on one textfield and then without pressing return button I tap on another textfield it adds the space between the first textfield to keyboard and second textfield to keyboard i.e it sums the space for both the textfield and it scrolls to top with lot of space between the textfields. Can anyone tell me what i can do to maintain constant proper distance between textfields.
Here is my code:
-(void)keyboardNotifier:(NSNotification *)notification {
CGRect frame = [RegisterTableVIew frame]; //RegisterTableVIew is tableview
frame.size.height -= 200;
[RegisterTableVIew setFrame:frame];
keyboardStatus = YES;
}
-(void) keyboardWillHide:(NSNotification *)note
{
CGRect frame = [RegisterTableVIew frame]; //RegisterTableVIew is tableview
frame.size.height += 200;
[RegisterTableVIew setFrame:frame];
keyboardStatus = NO;
}