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