UITableView使用详解
来源:互联网 发布:linux 批量重命名 编辑:程序博客网 时间:2024/05/18 14:42
- (void)viewDidLoad
{
}
//指定有多少个分区(Section),默认为1
- (NSInteger)numberOfSectionsInTableV
}
//每个section底部标题高度(实现这个代理方法后前面 sectionHeaderHeight 设定的高度无效)
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection
}
//每个section头部标题高度(实现这个代理方法后前面 sectionFooterHeight 设定的高度无效)
-(CGFloat)tableView:(UITableView *)tableView heightForFooterInSection
}
//每个section头部的标题-Header
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section{
}
//每个section底部的标题-Footer
- (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section{
}
//用以定制自定义的section头部视图-Header
-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
}
//用以定制自定义的section底部视图-Footer
-(UIView *)tableView:(UITableView *)tableView viewForFooterInSection:(NSInteger)section{
}
//指定每个分区中有多少行,默认为1
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
}
//改变行的高度(实现主个代理方法后 rowHeight 设定的高度无效)
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath{
}
//绘制Cell
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
//
//
//
//
//
//
//
//
//
//
//
//
//
}
//行缩进
-(NSInteger)tableView:(UITableView *)tableView indentationLevelForRowAt
}
//选中Cell响应事件
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath*)indexPath{
}
//行将显示的时候调用,预加载行
-(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
}
//选中之前执行,判断选中的行(阻止选中第一行)
-(NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath
{
}
//编辑状态,点击删除时调用
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingSt
forRowAtIndexPath:(NSIndexPath *)indexPath
{
}
//cell右边按钮格式为UITableViewCellAccessory
-(void)tableView:(UITableView *)tableView accessoryButtonTappedFor
}
//右侧添加一个索引表
- (NSArray *)sectionIndexTitlesForTab
}
//划动cell是否出现del按钮
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath*)indexPath {
}
//设定横向滑动时是否出现删除按扭,(阻止第一行出现)
-(UITableViewCellEditingSt
{
}
//自定义划动时delete按钮内容
- (NSString *)tableView:(UITableView *)tableView
titleForDeleteConfirmati
}
//开始移动row时执行
-(void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath*)sourceIndexPath toIndexPath:(NSIndexPath*)destinationIndexPath
{
}
//滑动可以编辑时执行
-(void)tableView:(UITableView *)tableView willBeginEditingRowAtInd
{
}
//将取消选中时执行, 也就是上次先中的行
-(NSIndexPath *)tableView:(UITableView *)tableView willDeselectRowAtIndexPa
{
}
//让行可以移动
-(BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath*)indexPath
{
}
//移动row时执行
-(NSIndexPath *)tableView:(UITableView *)tableView targetIndexPathForMoveFr
{
}
- UITableView使用详解
- UITableView使用详解
- UITableView使用详解
- UITableView的使用详解
- UITableView 使用详解 教程
- UITableView使用详解
- (转)UITableView使用详解
- UITableView使用详解
- iOS UITableView使用详解
- UITableView使用详解
- UITableView的使用详解
- UITableView使用详解
- UITableView使用详解
- UITableView的使用与详解
- iOS-UITableView使用详解深入浅出
- UITableView(表视图)使用详解
- UITableView使用详解 相当详细
- iOS 之 UITableView 使用详解
- Comet:基于 HTTP 长连接的“服务器推”技术
- [Leetcode]Subsets I&II
- 雷军在“我看未来20年”上的演讲
- office outlook 2010 cannot open your default e-mail folders 的解决方法
- SQL Server 2008 R2 远程过程调用失败 0x800706be的解决方法
- UITableView使用详解
- Windows使用VNC viewer访问Ubuntu 14.04远程桌面的简单方法
- 未来一年想去的地方
- 为什么通常牛顿法比梯度下降法能更快的收敛
- IntelliJ IDEA13 如何创建TestModule(用于robotium自动测试)
- ios开发之深入浅出 (6) — ARC之对象转型
- 利用C语言理解面向对象的本质
- eclipse c++ 引用其它工程类 undefined reference to....
- F3不能用位带操作GPIO之原由