博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

UITableView专题

Posted on 2011-07-07 09:42  星尘的天空  阅读(229)  评论(0编辑  收藏  举报

该篇博客写的是和UITableView相关的知识点。

2011-07-07 开始

持续总结

-------------------------------------------------------------------------------------------------------------------------------------------------------

1:设置TableViewCell的高度

//设置行的高度

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

{

return 160.0;

}

 

2:设置TableViewCell行右边的系统图标

//下面的一样设置为他的图标为肩头

cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;

//下面是可以使用的几个枚举的图表值

typedef enum {

    UITableViewCellAccessoryNone,                   // don't show any accessory view

    UITableViewCellAccessoryDisclosureIndicator,    // regular chevron. doesn't track

    UITableViewCellAccessoryDetailDisclosureButton, // blue button w/ chevron. tracks

    UITableViewCellAccessoryCheckmark               // checkmark. doesn't track

} UITableViewCellAccessoryType;