iOS:fix demo crash
This commit is contained in:
parent
fa717c93e5
commit
3ce9d7b69b
@ -68,10 +68,10 @@ - (BOOL)isSimulator {
|
|||||||
|
|
||||||
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
|
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||||
if (indexPath.row == 0) {
|
if (indexPath.row == 0) {
|
||||||
NSString *file = self.demoFilePaths[44];
|
NSString *file = @"Snake.js";
|
||||||
DoricViewController *doricViewController = [[DoricViewController alloc]
|
DoricViewController *doricViewController = [[DoricViewController alloc]
|
||||||
initWithSource:[NSString stringWithFormat:@"assets://src/%@", file]
|
initWithSource:[NSString stringWithFormat:@"assets://src/%@", file]
|
||||||
alias:self.demoFilePaths[44]
|
alias:file
|
||||||
extra:nil
|
extra:nil
|
||||||
];
|
];
|
||||||
[self.navigationController pushViewController:doricViewController animated:NO];
|
[self.navigationController pushViewController:doricViewController animated:NO];
|
||||||
|
Reference in New Issue
Block a user