mayan29 / treetableview Goto Github PK
View Code? Open in Web Editor NEWiOS 树状列表控件,可单选多选、展开折叠、节点查询等,灵活性高,可自定义样式。
iOS 树状列表控件,可单选多选、展开折叠、节点查询等,灵活性高,可自定义样式。
是我操作有问题还是怎么的。
你好,遇到个问题,如果子节点模型的ID跟父节点模型的ID一样的话,CPU会飙升,导致程序卡死;
这个有没有破的;
树形图很好用,稍微改进一下就能适配公司项目的需求,感谢作者!
当叶节点数为2万个左右时,显示不了
我只想选最下级的东西
// 顶级节点排序
self.topItems = [topItems sortedArrayUsingComparator:^NSComparisonResult(MYTreeItem *obj1, MYTreeItem *obj2) {
return [@([obj1.orderNo integerValue]) compare:@([obj2.orderNo integerValue])];
}].mutableCopy;
// 所有 item 排序
for (MYTreeItem *item in self.tmpItems) {
item.childItems = [item.childItems sortedArrayUsingComparator:^NSComparisonResult(MYTreeItem *obj1, MYTreeItem *obj2) {
return [@([obj1.orderNo integerValue]) compare:@([obj2.orderNo integerValue])];
}].mutableCopy;
}
我只想选择最后一层的节点 没有child的 其他上一层的只是展开 不选中怎么做?
比如组织架构非常大,不可能一次就加载出来,而且也存在改变的情况;所以需要点击后获取部门下面的成员,然后加入树结构
大神可以修改一下,当选择不同的省份或者市区,意思就是本次点击的菜单不属于上一次菜单的子级,就收起上一次的菜单展开新的菜单,这样始终都只有一个级别的菜单展开,不至于展开超级多的列表需要手动收回。大神,这个问题困扰了好久,不过你这个目前为止也已经是IOS里面我看到过的最完美的了。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.