Bladeren bron

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 jaren geleden
bovenliggende
commit
afba8f3e48
1 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  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];
     }
 }