首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏iOS开发~

    iOS_TableView Style and Cell Style

    自己整理一下tableView几种Style的样式,不然每次都的搜索or试(记不住啊~记不住>_<) 一、TableViewCell Style 1、.default:detailTextLabel 不会显示 2、.value1:textLabel靠左;detailTextLabel靠右 灰色 3、.value2:默认字号小;textLabel 默认蓝色,距离左边很宽的间距;detailTextLabel 贴着textLabel 4、.subtitle:textLabel在上;detailTextLabel在下一行 缩小显示 二、accessoryType 1、.disclosureIndicator:

    2.2K10编辑于 2022-07-20
  • 来自专栏月亮与二进制

    iOS中TableView的不同类型

    imageNamed:@"icon"];// 图片 cell.textLabel.text = @"textLabel";// 文本 cell.detailTextLabel.text = @"detailTextLabel";// 子文本 } break; case 2:// UITableViewCellStyleValue1 imageNamed:@"icon"];// 图片 cell.textLabel.text = @"textLabel";// 文本 cell.detailTextLabel.text = @"detailTextLabel";// 子文本 } break; case 3:// UITableViewCellStyleValue2 = @"detailTextLabel";// 子文本 } break; } return cell; } 可以在我的github

    2.1K20发布于 2021-11-23
  • 来自专栏xx_Cc的学习总结专栏

    iOS-UITableView 详解(一)

    typedef NS_ENUM(NSInteger, UITableViewCellStyle) { UITableViewCellStyleDefault, // 左侧显示textLabel(不显示detailTextLabel ),imageView可选(显示在最左边) UITableViewCellStyleValue1, // 左侧显示textLabel、右侧显示detailTextLabel(默认蓝色),imageView 可选(显示在最左边) UITableViewCellStyleValue2, // 左侧依次显示textLabel(默认蓝色)和detailTextLabel,imageView可选(显示在最左边) UITableViewCellStyleSubtitle // 左上方显示textLabel,左下方显示detailTextLabel(默认灰色),imageView可选(显示在最左边) }; 简单使用

    2K50发布于 2018-05-10
  • 来自专栏学海无涯

    iOS18适配指南之UITableView

    .systemFont(ofSize: 25) : .systemFont(ofSize: 21) cell.detailTextLabel?. content[indexPath.row] : detailContent[indexPath.row] cell.detailTextLabel?.

    64811编辑于 2024-09-27
  • 来自专栏君赏技术博客

    托管UITableView多样式cell的第三方库ZHTableViewGroup

    *cellOne = (HomeCellStyleOne *)cell; cellOne.textLabel.text = @"One Title"; cellOne.detailTextLabel.text *cellTwo = (HomeCellStyleOne *)cell; cellTwo.textLabel.text = @"Two Title"; cellTwo.detailTextLabel.text

    98610发布于 2018-09-07
  • 来自专栏学海无涯

    iOS18适配指南之UITableView

    .systemFont(ofSize: 25) : .systemFont(ofSize: 21) cell.detailTextLabel?. content[indexPath.row] : detailContent[indexPath.row] cell.detailTextLabel?.

    40110编辑于 2025-02-10
  • 来自专栏云原生布道专栏

    【IOS开发基础系列】Table View开发专题

    这种格式虽然可以设置detailTextLabel,但是不会显示该标签。      2、UITableViewCellStyleSubtitle         该格式与前一种相比,增加了对detailTextLabel的支持,该标签将会显示在textLabel标签的下面,字体相对较小 3、UITableViewCellStyleValue1         该格式居左显示textLabel,居右显示detailTextLabel,且字体较小。      4、UITableViewCellStyleValue2         该格式居左现实一个小型蓝色主标签textLabel,在其右边显示一个小型黑色副标题详细标签detailTextLabel。 UITableViewCell包含了textLabel、detailTextLabel和imageView等view,而你还可以自定义一些视图放在它的contentView里。

    2.6K20编辑于 2023-10-16
  • 来自专栏iOS 开发杂谈

    浅析 NSTimer 和 CADisplayLink 内存泄漏

    dispatch_source_cancel(_timer); dispatch_async(dispatch_get_main_queue(), ^{ self.detailTextLabel.text NSDateFormatter alloc] init]; dateformatter.dateFormat = @"HH:mm:ss"; self.detailTextLabel.text dateformatter = [[NSDateFormatter alloc] init]; dateformatter.dateFormat = @"HH:mm:ss"; self.detailTextLabel.text

    1.9K10发布于 2018-09-11
  • 来自专栏三掌柜的技术空间

    iOS开发:实现点击常用控件弹出地区选择框(万能方法)

    UIEdgeInsetsMake(0, 5, 0, 5); cell.textLabel.text = cellTitles[indexPath.row]; cell.detailTextLabel.text

    2.2K32编辑于 2021-12-15
  • 来自专栏学海无涯

    iOS14开发-UIView

    detailTextLabel?.text = "BBB" cell?.imageView?. detailTextLabel?.text = "BBB" cell?.imageView?. detailTextLabel?.text = detailContent?[indexPath.row] cell?.imageView?. detailTextLabel?.text = detailContent?[indexPath.row] cell?.imageView?. detailTextLabel?.text = detailContent[indexPath.row] cell?.imageView?.

    14.8K10发布于 2021-01-21
  • 来自专栏一“技”之长

    iOS中CoreData数据管理系列四——进行数据与页面的绑定

    SchoolClass * obj = [_fecCon objectAtIndexPath:indexPath];     cell.textLabel.text = obj.name;     cell.detailTextLabel.text

    1.1K10发布于 2018-08-15
  • 来自专栏iOS底层原理

    iOS-如何创建一个新的App基础框架

    YourModel *model = _dataArr[indexPath.row]; cell.model = model; cell.textLabel.text = @"来教室里的会计法"; cell.detailTextLabel.text

    1.6K20发布于 2021-09-24
  • 来自专栏Python疯子

    Swift - 给TableView添加编辑功能(删除,插入)

    [indexPath.row] cell.detailTextLabel?.text = "\(data! [indexPath.row] cell.detailTextLabel?.text = "\(data!

    4.1K20发布于 2018-09-06
  • 来自专栏Swift社区

    Swift 中 key paths 的能力

    text = song.name cell.detailTextLabel?.text = song.artistName cell.imageView?. text = model[keyPath: titleKeyPath] cell.detailTextLabel?.

    2K10发布于 2021-11-26
  • 来自专栏陈满iOS

    iOS·下载管理第三方框架初步调研

    inSection:0]]; [cell.detailTextLabel

    1.1K20发布于 2018-10-09
  • 来自专栏韦弦的偶尔分享

    Swift 中 key paths 的能力

    text = song.name cell.detailTextLabel?.text = song.artistName cell.imageView?. text = model[keyPath: titleKeyPath] cell.detailTextLabel?.

    2.8K20发布于 2021-07-08
  • 来自专栏青玉伏案

    IOS开发之微信山寨版

    Configure the cell... 10 cell.textLabel.text = self.myData[indexPath.item][@"name"]; 11 cell.detailTextLabel.text

    1.6K50发布于 2018-01-11
  • 来自专栏一“技”之长

    iOS UITableViewCell使用详解

    readonly, retain) UILabel     *textLabel; 标题标签 @property (nonatomic, readonly, retain) UILabel     *detailTextLabel

    1.5K20发布于 2018-08-15
  • 来自专栏coding...

    swift3.0 coreData的使用-日记本demo效果需求分析创建工程添加数据库改写Detail页面改写Master页面Demo地址

    description cell.detailTextLabel!.text = event.timestamp!.

    94640发布于 2018-08-23
  • 来自专栏清墨_iOS分享

    自学Swift之路(一)UI入手之基本控件

    detailTextLabel?.textColor = UIColor.brownColor() return cell!

    3.8K110发布于 2018-05-07
领券