UITableViewController
2015-12-23 18:59
330 查看
可以用tableViewController来内嵌一个tableView,直接创建好tableView,不需要再签代理,直接使用
创建cell的另一种方式,用注册的方式
[self.tableView registerClass:[UITableViewCell class] forCellReuseIdentifier:@"reuse"];
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"reuse" forIndexPath:indexPath];
refreshControl需要与tableView捆绑使用,必须创建tableView才能使用
self.refreshControl = [[UIRefreshControl alloc] init]; [self.refreshControl addTarget:self action:@selector(refresh:) forControlEvents:UIControlEventValueChanged];
- (void)refresh:(UIRefreshControl *)control{ [control endRefreshing]; NSLog(@"11111"); }
相关文章推荐
- 1567: [JSOI2008]Blue Mary的战役地图
- IOS---NSdata 与 NSString,Byte数组,UIImage 的相互转换
- 一个Flume 异常(Put queue for MemoryTransaction of capacity 100 full)的排查和解决思路
- UGUI - RectTransform
- Maven, Ivy, Grape, Gradle, Buildr, SBT, Leiningen, ant
- Maven, Ivy, Grape, Gradle, Buildr, SBT, Leiningen, ant
- 如何判断Map中的key或value类型
- UITebleViewCell添加侧滑按钮
- ARduino - 用Arduino主板调试蓝牙模块
- Codeforces #252 (Div. 2) B. Valera and Fruits
- 关于UGUI图集AssetBundle的加载与释放
- UICollectionViewDelegateFlowLayout
- easyui 使用随笔
- ios开发 UITableViewController和 UITableView
- POJ--1679--The Unique MST【推断MST是否唯一】
- UIImage使用总结
- UITabBarController
- iOS 扩大UIButton的响应范围
- StringBuilder[] 作为数组如何使用
- UICollectionViewDelegate