iOS:fix demo crash

This commit is contained in:
pengfei.zhou 2020-03-02 13:34:12 +08:00 committed by osborn
parent fa717c93e5
commit 3ce9d7b69b

View File

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