iOS use DoricViewController
This commit is contained in:
parent
b88e3605b0
commit
31cfdd239f
@ -76,17 +76,12 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
NSString *file = self.demoFilePaths[(NSUInteger) indexPath.row];
|
NSString *file = self.demoFilePaths[(NSUInteger) indexPath.row];
|
||||||
if ([file containsString:@"NavigatorDemo"]) {
|
DoricViewController *doricViewController = [[DoricViewController alloc]
|
||||||
DoricViewController *doricViewController = [[DoricViewController alloc]
|
initWithScheme:[NSString stringWithFormat:@"assets://src/%@", file]
|
||||||
initWithScheme:[NSString stringWithFormat:@"assets://src/%@", file]
|
alias:self.demoFilePaths[(NSUInteger) indexPath.row]
|
||||||
alias:self.demoFilePaths[(NSUInteger) indexPath.row]
|
extra:nil
|
||||||
extra:nil
|
];
|
||||||
];
|
[self.navigationController pushViewController:doricViewController animated:NO];
|
||||||
[self.navigationController pushViewController:doricViewController animated:NO];
|
|
||||||
} else {
|
|
||||||
DemoVC *demoVC = [[DemoVC alloc] initWithPath:file];
|
|
||||||
[self.navigationController pushViewController:demoVC animated:NO];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
Reference in New Issue
Block a user