Skip to content

Commit

Permalink
Change scroll position to top
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Guo committed Mar 28, 2014
1 parent 65c6521 commit 1799ebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BZGFormViewController/BZGFormViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ - (void)textFieldDidBeginEditing:(UITextField *)textField
}

NSIndexPath *indexPath = [self.tableView indexPathForCell:cell];
[self.tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionMiddle animated:YES];
[self.tableView scrollToRowAtIndexPath:indexPath atScrollPosition:UITableViewScrollPositionTop animated:YES];
}

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string
Expand Down

0 comments on commit 1799ebc

Please sign in to comment.