看到就震惊了的代码
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]; }
相关文章推荐
- java web mysql数据库插入数据乱码问题解决方法
- lua语言基础
- java 线程技术详解
- c++_6 : 构造函数和析构函数
- LeetCode Longest Substring Without Repeating Characters
- next数组的理解
- python中的多线程
- golang声明变量
- c语言:1000瓶水,有一瓶是有毒的,现共有10只老鼠,怎么判断毒水?
- 分位数回归的r语言代码
- php 使用 curl 发送 post 数据
- c++_5: 函数的特性
- JavaWeb自学之html学习笔记 Day-1
- 5.2 calendar--通用日期的相关函数(3)
- 设计模式之观察者模式简单理解
- C语言知识整理(2):volatile与register
- Eclipse的快捷键
- 《C++ primer》英文第五版阅读笔记(二十五)——函数基本知识
- StringUtils 方法的操作对象是 java.lang.String 类型的对象
- 生产者——消费者模型的java代码实现