Closed MojtabaHs closed 8 years ago
Hi @MojtabaHs,
This was added 10 days ago. https://github.com/SyncDB/DATASource/pull/82
I'll take some time to add it to the README.
hmmmm. I see. Index path for cell with id is a good solution. But some times data source object should decide witch cell id should be used. The solution you mentioned is good but its need some index path storing and passing the array to delegate and etc. But it could easily achieved at initial time... if you know what I mean.
I'm sorry. I don't follow. Maybe you could more information about your use case. Like how your interface looks and how your data is stored, do you separate by sections? Etc.
I see an opportunity to add an awesome feature and would be nice if we could collaborate to make it happen :)
Imagine a conversation app like apple native messages. some messages contains only emoji, some only images, videos, maps and etc. Each one has its own xib (I think) and the table view datasource contain all of them. at cell initialization we could have something like: if (message.containsOnlyVideo) { cell = videoOnly cell from nib }
I hope you got the idea. And about collaborate, I love to. But at this time, I'm working on some other part of my application and it could be my next job ;)
I think that should work with what was added on https://github.com/SyncDB/DATASource/pull/82
🤔
I'll make sure to add a demo project to check that we're on the same page :)
Added an issue for this https://github.com/SyncDB/DATASource/issues/91
Some times we want to entirely change the cell and load it from different xib or etc. at specific situations but this cool framework limits cell identifier to just one static reusable cell. I'm very interested to know is there a good reason behind this?
Thanks