From 3ce9d7b69b2a4d0797510e31e39dd6151f724024 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Mon, 2 Mar 2020 13:34:12 +0800 Subject: [PATCH] iOS:fix demo crash --- doric-iOS/Example/Example/ViewController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doric-iOS/Example/Example/ViewController.m b/doric-iOS/Example/Example/ViewController.m index 7f4309d5..92631120 100644 --- a/doric-iOS/Example/Example/ViewController.m +++ b/doric-iOS/Example/Example/ViewController.m @@ -68,10 +68,10 @@ - (BOOL)isSimulator { - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.row == 0) { - NSString *file = self.demoFilePaths[44]; + NSString *file = @"Snake.js"; DoricViewController *doricViewController = [[DoricViewController alloc] initWithSource:[NSString stringWithFormat:@"assets://src/%@", file] - alias:self.demoFilePaths[44] + alias:file extra:nil ]; [self.navigationController pushViewController:doricViewController animated:NO];