cocoaTouch/MasterViewController.m
changeset 3352 ac5d14a35482
parent 3335 2520ee7a5484
child 3357 3836a31879e7
--- a/cocoaTouch/MasterViewController.m	Fri Apr 16 17:17:43 2010 +0000
+++ b/cocoaTouch/MasterViewController.m	Sat Apr 17 04:59:10 2010 +0000
@@ -118,14 +118,14 @@
     int oldRow = (lastIndexPath != nil) ? [lastIndexPath row] : 0;
     
     if (newRow != oldRow) {
+        [self.tableView deselectRowAtIndexPath:lastIndexPath animated:YES];
         [detailViewController.navigationController popToRootViewControllerAnimated:NO];
         
         UITableViewController *nextController = [self.controllers objectAtIndex:[indexPath row]];
-        [detailViewController.navigationController pushViewController:nextController animated:YES];
+        [detailViewController.navigationController pushViewController:nextController animated:NO];
         self.lastIndexPath = indexPath;
         [self.tableView selectRowAtIndexPath:indexPath animated:YES scrollPosition:UITableViewScrollPositionNone];
     }
-    [self.tableView deselectRowAtIndexPath:indexPath animated:YES];
 }