【问题标题】:how to classify the tableview month wise and put them in different sections?如何按月对 tableview 进行分类并将它们放在不同的部分?
【发布时间】:2017-02-08 05:24:40
【问题描述】:

我正在尝试根据每笔交易的日期将图 1 中显示的交易详细信息按月分组,如图 2 所示。我该怎么做? Picture 1 Picture 2

【问题讨论】:

    标签: ios arrays swift uitableview sorting


    【解决方案1】:

    使用您的逻辑对数组进行排序并将其组织为字典,其中月份为键,数组为值。然后如鲁尼所说,将其显示为可扩展的表格视图。

    【讨论】:

      猜你喜欢
      • 2020-09-25
      • 1970-01-01
      • 2012-09-30
      • 2013-02-04
      • 2014-01-13
      • 2015-11-02
      • 1970-01-01
      • 1970-01-01
      • 2015-08-30
      相关资源
      最近更新 更多