Closed Fogh closed 9 years ago
+1 for this pull request
This PR breaks collapsing of the cells. After cell is collapsed you have to tap twice to expand it again.
I'm using this fix in an app. I have no problem with expanding rows. They expand on first tap.
What about the test project? I tried your fixed there and the results are as I described.
You're right. It doesn't seem to work in the test project. That is stange, since I used the test project to implement it in the app where I have it working.
It seems that the problem has fixed in 1.0.2 (without this fix).
This problem still in 1.0.2
The problem still occurs in 1.0.2 for me as well.
The problem is that the test project works fine for me.
@Fogh @gtgg Ok, can you provide me with more information? Do you use swift or objective-c? Any big differences between the way test project uses RATreeView
and the way your projects uses it?
This duplicate effect can happen if you generate new object every time ratreeview asks you for children of a specific item. Ratreeview uses address of objects so every time you should provide exact same objects. @fog @gtgg
@abbasmousavi That's a good point :+1:
@Augustyniak @abbasmousavi @Fogh you are right.But I can't provide exact same objects。So i think this problem need solve.
@abbasmousavi You are right! I load data from a SQLite database, so I don't use the same objects.
@Augustyniak @Fogh i can't provide exact same objects. I get children of specific item from net. RATreeView is work-well on 0.9.2。 So, i still need some help to fix this problem,please.
@Fogh @gtgg @abbasmousavi Version 1.0.3 has been released. It should fix the problem with duplicated cells even if provided objects change between collapse/expand operations.
Please let me know whether new version behave correctly in your cases.
@Augustyniak, I provide same objects every time and yes, 1.0.3 behaves correctly in my case. Thanks for the update.
Seems like a missing exclamation mark was causing the bug.
Fixes #105 for me.