Comments (4)
Oh, man, sounds terrible, could you make gist example or provide case here, I will test it
from expandabletable.
@azonov We will release the app on store today, I need urgent help.
This is the error when I try to call the the toggleItem function from outside of tableView didselect method, with same indexPath.
this what i did before try to unexpandCell, i call the func in tableView didSelect method,
self.indexPathTrack = indexPath
toggleItem(at: indexPath)
This works fine,
after that, i try to call unexpand the cell when I reload tableView with new data, in order to not show the expandedCell.
This is in didSelect method of collectionView , cause data chages when didSelect is called.
self.toggleItem(at: self.indexPathTrack)
and it crashes me, i couldn't figure out.
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (13) must be equal to the number of rows contained in that section before the update (21), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).'
from expandabletable.
I didn't test on CollectionView's, still it seem like an issue with toggling, try to call unexpand and reload in dispatch_async, it will be scheduled in the next runloop and calculation must be fixed
from expandabletable.
@azonov Not about collectionView, when i try to unexpand with button the tracked cell, it throws same error. but i'll try with async.
from expandabletable.
Related Issues (7)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from expandabletable.