UITableView 常用方法列表
来源:互联网 发布:java中集合的作用 编辑:程序博客网 时间:2024/04/29 10:07
- Delegate:
- |--UITableViewDelegate
- ||----tableView: didSelectRowAtIndexPath: //点击某个cell执行的方法
- ||----tableView:heightForFooterInSection: //设置自定义未标题的高度
- ||----tableView: heightForHeaderInSection: //设置某个cell的高度
- ||----tableView: viewForHeaderInSection: //设置自定义头视图
- ||----tableView: viewForFooterLnSection: //设置自定义尾视图
- ||----tableView: willBeginEditingRowAtIndexPath: //将要开始编辑
- ||----tableView: willDisplayCell: forRowAtIndexPath: //将要显示某个cell
- ||----tableView: willSelectRowAtIndexPath: //将要选中某个cell
- ||----tableView:titleForDeleteConfirmationButtonForRowAtIndexPath: //设置动删除时删除按钮上的文字
- |--UITableViewDataSource
- ||----numberOfSectionInTableView://设置共有多少个分组
- ||----tableView: numberOfRowsInSection://设置某个分组中有多少行
- ||----tableView: cellForRowAtIndexPath://设置某行上显示什么内容
- ||----tableView: titleForHeaderInSection://设置分区的头标题 (NSString *)
- ||----tableView: titleForFooterInSection://设置分区的尾标题 (NSString *)
- ||----sectionIndexTitlesForTableView://设置快速索引栏的内容(NSArray *)
- ||----tableView: canEditRowAtIndexPath://设置是否可以编辑
- ||----tableView:canMoveRowAtIndexPath://设置是否可以移动
- ||----tableView: commitEditingStyle:forRowAtIndexPath://处理编辑状态下的情况
- ||----tableView: moveRowAtIndexPath:toIndexPath://移动过程中执行的方法
- Methods:
- ||----initWithFrame: style://初始化方法,设置frame和样式
- ||----insertRowsAtIndexPaths:withRowAnimation: //插入行,在指定位置,使用动画
- ||----deleteRowsAtIndexPaths: withRowAnimation://删除行,在指定位置,使用动画
- ||----moveRowAtIndexPath: toIndexPath://移动一行,从一个位置,到另一个位置
- ||----insertSection: withRowAnimation: //插入分组,使用动画
- ||----deleteSection:withRowAnimation: //删除分组,使用动画
- ||----moveSection: toSection: //移动分组,从一个位置,到另一个位置
- ||----setEditing: animated://进入编辑状态,使用动画
- ||----reloadData//更新所有数据
- ||----reloadRowsAtIndexPaths: WithRowAnimation://更新某几行数据,使用动画
-
- Properties:
-
- ||----tableHeaderView//自定义头视图
- ||----tableFooterView//自定义尾视图
- ||----separatorStyle//cell之间分割线样式
- ||----separatorColor//cell之间分割线颜色
- ||----sectionHeaderHeight//头标题高度
- ||----sectionFooterHeight//尾标题高度
- ||----rowHeight//行高
- ||----editing//是否正在编辑
- ||----dataSource//数据源代理
- ||----backgroundView//背景视图,(UIView *)
- ||----allowsMultipleSelectionDuringEditing//是否允许在编辑状态下多选
- ||----allowsMultipleSelection//是否允许多选
- ||----allowsSelectionDuringEditing//是否允许在编辑状态下选中
- ||----allowsSelection//是否允许选中
0 0
- UITableView 常用方法列表
- UITableView 常用方法列表
- UITableView 常用方法总结
- 3.UItableView常用方法
- UITableView中常用方法
- UITableView的常用方法
- UITableView常用方法
- UITableView 常用的几个方法
- UITableView的常用代理方法
- UITableView的常用代理方法
- UITableView的一些常用方法
- UITableView的常用代理方法
- UITableView的常用代理方法
- UITableView 常用的委托方法:
- UITableView常用属性和方法
- UITableView常用方法、属性总结
- iOS UITableView 常用方法集合
- list列表常用方法
- struct和typedef struct彻底明白了 http://www.cnblogs.com/qyaizs/articles/2039101.html
- 常用UIButton控件的属性列表
- Swift性能优化 - struct
- ZOJ 2836 Number Puzzle(容斥原理)
- 浅析c与c++中struct的区别 http://www.jb51.net/article/39992.htm
- UITableView 常用方法列表
- listview的另一个刷新方法
- windows 下 cudnn的安装方法
- 基于网络传输的数据包的加密解密方法及终端
- jsp页面中的代码执行加载顺序介绍
- 【转】OpenCV中Mat的详解
- iOS 蓝牙
- centos7的安装体验
- sqlite的日期类型