i have a UITableView having custom UITableViewCell. it has UITextField. in order to avoid hiding of UITextField below the keyboard, i wrote a custom method to move up the View when text field is under keyboard.
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.25f];
[UIView setAnimationBeginsFromCurrentState:YES];
CGRect frame = self.view.frame;
if (up) {
if (frame.origin.y >= 0) {
frame.origin.y = frame.origin.y - 120;
}
} else {
if (frame.origin.y >= -150) {
frame.origin.y = frame.origin.y + 120;
}
}
[self.view setFrame:frame];
[UIView commitAnimations];
this works fine and the table view is going up and down according to my requirements in ios 6.
But in ios 7 when the view is up, the tableview is shown above status bar. As an alternate i tried setting content inset for tableview and scrolling to row at position. But it was not up to my requirement. Please suggest a method to hide tableview above status bar.