#EANF#
I upgraded to Xcode 5 and my app to target iOS 7 and my app no longer
responded to scrollToIndexPath to scroll the appropiate tableviewcell out
of the way of the keyboard
My set up is i had a custom tableview cell, with textfield on it, and was
using it to generate multiple tableview cells to display and edit parts of
an address.
Tapping on a textfield on a cell triggers
- (void)textFieldDidBeginEditing:(UITextField *)textField
And the code to make it scroll to the top , out of the way of the keyboard
was as follows
UITableViewCell *cell = (UITableViewCell*) textField.superview.superview;
[self scrollToRowAtIndexPath:[self indexPathForCell:cell]
atScrollPosition:UITableViewScrollPositionTop animated:YES];
This worked fine in iOS 6 but doesn't work in iOS 7. It also does not
generate any error.
No comments:
Post a Comment