Closed teamtomsk closed 9 years ago
Oops answered with the wrong account.
No sure I completely understand your setup, you've obviously seen the closeAllOpenFolders method that I exposed in the Layout why can't you call in in your notification? I'm assuming that you've checked that your Notification handling logic is on the main thread.
You say that the folder collapses, which I'm assuming to mean it closes properly leaving your on screen collection view without an open info folder. But then you say the folder view remains which makes me think it's still on screen or do you mean you still have a handle to it? I don't see any reason to keep a hold of the created view (unless it's really expensive to create) after the - collectionView:viewForSupplementaryElementOfKind:atIndexPath: call. If you are keeping a single view and re-using it instead of creating a brand new one each time like the demo, you might need to create 2 for the opening and closing views.
If you have the code for me to look at I'm more than willing to take a look and see what's going on.
Hi there - nice tool by the way...
I'm struggling with an implementation and hoping you can help...
I have about 9-10 sections each with their own .json file and selected from a different view. I have all the data loading fine and all looks good. Until I choose another section from a separate view having left one of the folders open. The folder itself collapses away, but the folder view remains and if just try to load the data into the open view it doesn't always format properly.
I only have one section per view with multiple cells / folders in that view. e.g. The menu calls the collection view to display data based on a NSNotification it receives - which all works fine with the exception of an open folder not closing if left open when a new notification id received. And as much as I have tried I can't seem to call that folder to close either in the notification or in the collection view.
Is there a way to use the closeAllOpenFolders or anything else when viewing a new data view or when leaving an existing view to force any open folders to close? Exactly like it does when selecting different cells within the same section in the demo.
Thanks!!