jzhang0480 / zjtableviewmanager Goto Github PK
View Code? Open in Web Editor NEWPowerful data driven tableView,make tableView build so easy.
License: MIT License
Powerful data driven tableView,make tableView build so easy.
License: MIT License
大佬,这个树状的tableView要怎么往里面添加数据啊
xib上设置上下左右约束且显示约束没问题,autoHeight后manager.reload报约束错误。不调用autoHeight不报错误,但是撑不开
if selectionTypeBtn.title == "多选" {
//如果单元格选中的,并且此时单元格被滑到不可见位置,就不打印了
let items: [SelectionCellItem] = manager.selectedItems() <----
print("multi-selected items as follows:")
print(items.map { "item at ($0.indexPath.row)" })
}
三级列表中,在第三级需要有单选的功能,但是我在实现的时候,无法刷新页面数据,不知道为啥。麻烦大神帮忙看下。下面是代码
`for item in linelistModel! {
let item0 = ServerListTitleItem()
item0.model = item
item0.isExpand = true
item0.cellHeight = SXRealValue(55)
section.add(item: item0)
for group in item.groupList! {
let item1 = ServerVideoItem()
item1.model = group
item1.cellHeight = SXRealValue(60)
item0.addSub(item: item1, section: section)
for vm in group.vmList! {
let item2 = ServerContentItem()
item2.model = vm
if vmess.flagId == self.selectModel?.flagId {
item2.isSelect = true
item1.isExpand = true
}else {
item2.isSelect = false
item1.isExpand = false
}
item2.cellHeight = SXRealValue(55)
item1.addSub(item: item2, section: section)
item2.setSelectionHandler { (Model: ServerContentItem) in
self.selectModel = vmessModel.model
self.manager.reload()
}
}
}
}`
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'attempt to delete row 145 from section 0 which only contains 58 rows before the update'
应该是权限问题,Overriding non-open instance method outside of its defining module
首先,很好用的组件,感谢🙏
我的场景:自定义ZJTableViewCell子类,有一个textView,要求输入文字的时候动态修改cell的高度
问题:现在初始化item会给textView传递内容(富文本),需要根据内容先计算cell高度,然后发现在cellWillAppear()中无法准确获取cell的宽度,进而导致无法计算文字高度,在cellDidDisappear()可以获取cell宽度,但是对item.cellHeight赋值并执行item.updateHeight()没有生效
你好,最近遇到一个项目需要用ScrollView嵌套TableView,使用了项目中的ExpandTree功能。
然后发现在滚动scrollView时不能对TableView进行滚动,重写了ScrollView中的Simultaneously返回True也不行,请问是我写的有问题吗?还请指导一下,谢谢。
多层cell的关系如何关联数据源,还有点击事件回调
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.