码迷,mamicode.com
首页 > 移动开发 > 详细

IOS开发之UITableView1

时间:2015-07-30 02:18:14      阅读:186      评论:0      收藏:0      [点我收藏+]

标签:开发

,uitableviewdelegate>tableView处理步骤 

#pragma mark 

  1. 有多少组

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView

 #pragma mark 

2.第section组头部控件有多 

- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section

#pragma mark

3.第section组有多少 

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section

#pragma mark 

4.indexPath这的cell有多高 

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath

*)indexPath 

#pragma mark 

5.indexPath这的cell什么样 

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath
*)indexPath

#pragma mark 

6.第section组头部显示什么控件 

- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

 


本文出自 “灵哥笔记” 博客,请务必保留此出处http://kinghacker.blog.51cto.com/7767090/1679784

IOS开发之UITableView1

标签:开发

原文地址:http://kinghacker.blog.51cto.com/7767090/1679784

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!