소스 검색

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