UITableView开发流程
来源:互联网 发布:webshell采集器 编辑:程序博客网 时间:2024/05/22 03:08
#pragma mark 1.有多少组
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
* 返回2
#pragma mark 2.第section组头部控件有多高
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
* section == 0 返回0
* section == 1 返回标题栏的高度(44)
#pragma mark 3.第section组有多少行
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
* section == 0 返回1
* section == 1
* 如果当前是第一组,返回第一组数量
* 如果当前是第二组,返回第二组数量
#pragma mark 4.indexPath这行的cell有多高
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
* section == 0 返回cell的高度
* section == 1
* 如果当前是第一组,返回第一组高度
* 如果当前是第二组,返回第二组高度
#pragma mark 5.indexPath这行的cell长什么样子
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
* section == 0 返回微博cell
* section == 1
#pragma mark 6.第section组头部显示什么控件
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
* section == 0 返回nil
* section == 1 返回标题栏控件
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
* 返回2
#pragma mark 2.第section组头部控件有多高
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section
* section == 0 返回0
* section == 1 返回标题栏的高度(44)
#pragma mark 3.第section组有多少行
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
* section == 0 返回1
* section == 1
* 如果当前是第一组,返回第一组数量
* 如果当前是第二组,返回第二组数量
#pragma mark 4.indexPath这行的cell有多高
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
* section == 0 返回cell的高度
* section == 1
* 如果当前是第一组,返回第一组高度
* 如果当前是第二组,返回第二组高度
#pragma mark 5.indexPath这行的cell长什么样子
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
* section == 0 返回微博cell
* section == 1
#pragma mark 6.第section组头部显示什么控件
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section
* section == 0 返回nil
* section == 1 返回标题栏控件
0 0
- UITableView开发流程
- UITableView 滚动流程性优化
- UITableView 滚动流程性优化
- UITableView 滚动流程性优化
- UITableView 滚动流程性优化
- UITableView 滚动流程性优化
- UITableView 滚动流程性优化
- iPhone开发 UITableView 详解
- iOS开发>>>UITableView
- iPhone开发--uitableview
- Xamarin ios开发 UITableView
- 【IOS开发】UITableView详解
- 开发学习笔记--UItableView
- iOS-开发UITableView-1
- iOS开发-UITableView-2
- iOS开发 ----- UITableView
- iOS开发UITableView小结
- iOS开发基础 - UITableView
- XMPPFrameWork IOS 开发 创建聊天室不能持久保存的解决办法
- java 抽象类
- JQuery模拟Windows 桌面例子程序
- TypeScript accomplish MVVM pattern(TypeScript实现MVVM)
- 删除系统日文输入法
- UITableView开发流程
- hadoop-2.2.0配置eclipse插件(windows和linux平台)
- sync/fsync/fdatasync的简单比较
- 不能上外网,好蛋疼
- 黑马程序员——iOS开发——oc——NSString的学习
- 如何收集系统最繁忙时段的AWR性能报告
- 关于IEEE754 规格数与非规格数的探讨 | IEEE 754-1985 IEEE 754-2008
- 监听短信数据库 实现自动填写到EditText
- Map/Reduce