zoukankan      html  css  js  c++  java
  • UITableView专题

    该篇博客写的是和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;


  • 相关阅读:
    Linux入门第三天——more,less,head,tail,ls 用户权限
    linux 入门第一天
    python入门第八天 摘自--廖雪峰python课程
    python入门第七天
    匿名函数
    返回函数
    高阶函数之filter 和 sorted
    map,reduce高阶函数
    高阶函数 巩固
    装饰器
  • 原文地址:https://www.cnblogs.com/xingchen/p/2099753.html
Copyright © 2011-2022 走看看