search

Home  >  Q&A  >  body text

IOS 如图的效果怎么弄呢?

注意,是GIF哦

阿神阿神2889 days ago232

reply all(4)I'll reply

  • 黄舟

    黄舟2017-04-17 17:40:22

    One way to achieve this is by changing the data. The data structure needs to be organized.

    reply
    0
  • ringa_lee

    ringa_lee2017-04-17 17:40:22

    This is the animation of the cell in the tableview

    reply
    0
  • PHPz

    PHPz2017-04-17 17:40:22

    https://github.com/xmartlabs/XLForm

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 17:40:22

    Each province or municipality is the headView of a section, and the subordinate cities are the cells of this section. When you click the expand button, the number of cells in this section is controlled to be the number of subordinate cities. When you click the collapse button, the number of cells is set to 0 is fine. The data does not need to change, just set it in the proxy method of dataSource. The essence of each button click is actually the reloadSection of the tableview. . . .

    reply
    0
  • Cancelreply