iphone/ipad开发之UITableView的方法
来源:互联网 发布:软件编辑器手机版 编辑:程序博客网 时间:2024/05/21 06:54
1.-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
2. -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section;//传入一个tableview
//返回tableview的区数
//传入一个tableview和该tableview的特定分区section
3. -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;//返回该分区中行数
//传入一个tableview与该tableview的某行索引
4. -(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section;//从索引路径获取分区和行,用来确定使用哪个值
//传入一个tableview和该tableview的特定分区section
//返回每个分区的标题值,可以自定义,这里得到分区名
5.- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView;
//传入一个tableview
//返回该tableview的分区索引
6. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
//点击一个cell后触发的事件
7. -(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
//设置行高
8.-(NSInteger)tableView:(UITableView *)tableView indentationLevelForRowAtIndexPath:(NSIndexPath *)indexPath;
//此方法将缩进级别设置为行号,返回缩进数字9.-(NSIndexPath *)tableView:(UITableView *)tableView willSelectRowAtIndexPath:(NSIndexPath *)indexPath;
//点击一个cell前触发的事件
10.-(UITableViewCellAccessoryType)tableView:(UITableView *)tableView accessoryTypeForRowWithIndexPath:(NSIndexPath *)indexPath {return UITableViewCellAccessoryDisclosureIndicator;}
//每一行都显示一个展示按钮
- iphone/ipad开发之UITableView的方法
- iphone开发之UITableView的使用
- (iPhone/iPad开发)监听UITableView上下滑动情况
- (iPhone/iPad开发)监听UITableView上下滑动情况
- iphone开发之UITableView 札记
- ipad开发开发之区别于iphone
- ipad开发开发之区别于iphone
- ipad开发开发之区别于iphone
- ipad开发开发之区别于iphone
- ipad开发开发之区别于iphone
- iphone--UITableView的Edit方法
- iPhone、iPad开发之图片资源管理
- iPhone、iPad开发之图片资源管理
- 【iphone应用开发】iphone应用开发之六:UITableView的详细讲解(一)
- 转载【iphone应用开发】iphone应用开发之六:UITableView的详细讲解(一)
- 【iphone应用开发】iphone应用开发之六:UITableView的详细讲解(一)
- 【iphone应用开发】iphone应用开发之六:UITableView的详细讲解(一)
- iPhone与iPad开发的区别
- 关于链表结构的基本操作 c 实现 (创建,插入删除,反转,合并链表,查找,是否有环,链表相交情况)
- java连接mysql数据库查询员工信息
- 烦人的中秋节!
- 【二进制】求一个数的二进制表示中1的个数
- 【郭林专刊】Java常见异常(Runtime Exception )小结 .
- iphone/ipad开发之UITableView的方法
- VTP配置
- java有关的各种技术简介。。。开发须知
- Java经典代码(配置文件的积累。。。 .
- 赢
- 【郭林专刊】Struts2项目搭建 .
- 项目经理问:为什么总是只有我在加班 – 挂包袱现象
- 简单工厂模式
- [x264]int16_t (*mv[2])[2]的含义