Преглед изворни кода

Gracefully handle the case where we try to drill into a row in the object explorer but can’t get a view controller.

Ryan Olson пре 12 година
родитељ
комит
afba8f3e48
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      Classes/Object Explorers/FLEXObjectExplorerViewController.m

+ 2 - 0
Classes/Object Explorers/FLEXObjectExplorerViewController.m

@@ -792,6 +792,8 @@ static const NSInteger kFLEXObjectExplorerScopeIncludeInheritanceIndex = 1;
     UIViewController *detailViewController = [self drillInViewControllerForRow:indexPath.row inExplorerSection:explorerSection];
     if (detailViewController) {
         [self.navigationController pushViewController:detailViewController animated:YES];
+    } else {
+        [tableView deselectRowAtIndexPath:indexPath animated:YES];
     }
 }