I have a UItableView that segues to a different view controller. I'm using a UITapGestureRecognizer that segues back to the tableView. This segue works, but I would like it to segue back to the tableView at the originally selected table row. How do I accomplish this?
Edit: Edited code
- (void)viewWillAppear:(BOOL)animated {
appDelegate = [[UIApplication sharedApplication] delegate];
NSLog(@"%@", NSStringFromCGPoint(appDelegate.testCGPoint));
[self.tableView setContentOffset:appDelegate.testCGPoint animated:YES];
}
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
if ([segue.identifier isEqualToString:@"ShowDetail"]) {
appDelegate.testCGPoint = [self.tableView contentOffset];
}
}