equal
deleted
inserted
replaced
95 #pragma mark - |
95 #pragma mark - |
96 #pragma mark Table view delegate |
96 #pragma mark Table view delegate |
97 -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
97 -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
98 int newRow = [indexPath row]; |
98 int newRow = [indexPath row]; |
99 int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1; |
99 int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1; |
100 UIViewController *nextController; |
100 UIViewController *nextController = nil; |
101 |
101 |
102 if (newRow != oldRow) { |
102 if (newRow != oldRow) { |
103 [self.tableView deselectRowAtIndexPath:lastIndexPath animated:YES]; |
103 [self.tableView deselectRowAtIndexPath:lastIndexPath animated:YES]; |
104 [detailViewController.navigationController popToRootViewControllerAnimated:NO]; |
104 [detailViewController.navigationController popToRootViewControllerAnimated:NO]; |
105 |
105 |