equal
deleted
inserted
replaced
196 } |
196 } |
197 |
197 |
198 #pragma mark - |
198 #pragma mark - |
199 #pragma mark Table view delegate |
199 #pragma mark Table view delegate |
200 -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
200 -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { |
201 int newRow = [indexPath row]; |
201 NSInteger newRow = [indexPath row]; |
202 int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1; |
202 NSInteger oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : -1; |
203 UIViewController *nextController = nil; |
203 UIViewController *nextController = nil; |
204 |
204 |
205 if (newRow != oldRow) { |
205 if (newRow != oldRow) { |
206 [tableView deselectRowAtIndexPath:lastIndexPath animated:YES]; |
206 [tableView deselectRowAtIndexPath:lastIndexPath animated:YES]; |
207 [targetController.navigationController popToRootViewControllerAnimated:NO]; |
207 [targetController.navigationController popToRootViewControllerAnimated:NO]; |