NSString* controllerClassName = cellInfo.navigateToController;
Class controllerClass = NSClassFromString(controllerClassName);
id controller = [[controllerClass alloc] init];
cellInfo.navigateToController代表一个类的属性。
[self.navigationController pushViewController:controller animated:YES];
瞬间感觉方便好多。
网友评论