Преглед на файлове

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];
     }
 }