您的位置:首页 > 编程语言

看到就震惊了的代码

2015-12-13 19:45 204 查看
【1】利用Runtime实现跳转到指定的VC
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString *demoClassString = [NSString stringWithFormat:@"DemoVC%ld", indexPath.row];

[self.navigationController pushViewController:[NSClassFromString(demoClassString) new] animated:YES];
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: