Giter Site home page Giter Site logo

treetable's Introduction

TreeTable

简单逻辑实现的多级列表 目前有一个想要改进的地方:每次删除或者加载数据之后,都是reloadData,本人希望使用reloadRowsAtIndexPaths:withRowAnimation:的方法,但能力不足,希望有人帮助,作出改进。

本demo实现了类似qq列表,但能自行扩展的多级列表(demo中实现了4级列表)。满足每次点击cell才发起网络请求获取数据的思路(demo中在每次点击cell的时候创建并加载了更多的model)。满足自定义各级cell。

本人是一个初学者。 在网上搜了一些多级列表的demo,也看了部分,使用起来确实有方便的地方,但是不太符合本人开发中遇到的实际需求。 本人需要一个类似qq列表的功能,但是需要更多子级。点击一个cell,才获取下一级列表的数据(网上许多demo都是要求一次性创建全部数据源),并展开该cell下的下一级列表,再次点击同一个cell,收缩该cell下的全部子列表。同级cell之间无关联。 自己尝试写的过程也比较痛苦,不过还好总算是写出了一点东西。

联系邮箱 [email protected]

treetable's People

Contributors

jonhory avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.