iOS: update demo code
This commit is contained in:
		| @@ -33,6 +33,6 @@ class DemoVC: UIViewController { | ||||
|         doricPanel.view.height = view.height | ||||
|         view.addSubview(doricPanel.view) | ||||
|         addChild(doricPanel) | ||||
|         doricPanel.config(jsContent, alias: filePath, extra: nil) | ||||
|         doricPanel.config(jsContent, alias: "__dev__", extra: nil) | ||||
|     } | ||||
| } | ||||
|   | ||||
| @@ -120,12 +120,12 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath | ||||
|         DemoSSRVC *vc = [[DemoSSRVC alloc] initWithPath:file]; | ||||
|         [self.navigationController pushViewController:vc animated:NO]; | ||||
|     } else { | ||||
|         DemoVC *doricViewController = [[DemoVC alloc] initWithPath:file]; | ||||
| //        DemoVC *doricViewController = [[DemoVC alloc] | ||||
| //                initWithSource:[NSString stringWithFormat:@"assets://src/%@", file] | ||||
| //                         alias:@"__dev__"//self.demoFilePaths[(NSUInteger) indexPath.row] | ||||
| //                         extra:nil | ||||
| //        ]; | ||||
| //        DemoVC *doricViewController = [[DemoVC alloc] initWithPath:file]; | ||||
|         DoricViewController *doricViewController = [[DoricViewController alloc] | ||||
|                 initWithSource:[NSString stringWithFormat:@"assets://src/%@", file] | ||||
|                          alias:@"__dev__"//self.demoFilePaths[(NSUInteger) indexPath.row] | ||||
|                          extra:nil | ||||
|         ]; | ||||
|         UIBarButtonItem *rightBarItem = [[UIBarButtonItem alloc] initWithTitle:@"Devkit" style:UIBarButtonItemStylePlain target:self action:@selector(onOpenDevkit)]; | ||||
|         doricViewController.navigationItem.rightBarButtonItem = rightBarItem; | ||||
|         [self.navigationController pushViewController:doricViewController animated:NO]; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user