Skip to content
This repository has been archived by the owner on Jun 17, 2018. It is now read-only.

CollectionView ReloadData bug #102

Closed
wraithseeker opened this issue Oct 18, 2015 · 9 comments
Closed

CollectionView ReloadData bug #102

wraithseeker opened this issue Oct 18, 2015 · 9 comments

Comments

@wraithseeker
Copy link

There's a bug with the usage of CollectionView and PagingMenuController with the reloading of the CollectionView affecting user experience.

Setup
Initial ViewController with a CollectionView
Second ViewController that shows an enlarged Image

Using JTSImageViewController to show enlarged image.

This issue can be replicated by showing the second VC and when it is dismissed, the CollectionView in the initial VC is reloaded

@wraithseeker
Copy link
Author

My previous version with PagingMenuController has no issues

Is there any new updates that caused this bug or could this be a bug from Apple?

@kitasuke
Copy link
Owner

Which version of PagingMenuController are you using?
To be clear, which version is your previous one?

@wraithseeker
Copy link
Author

The newest version. I no longer have a copy of the live app. I think it could also be because Apple changed something?

The issue disappears if I test it using only the viewcontroller without pagingMenuController

@kitasuke
Copy link
Owner

Well, this library's loading system has recently changed drastically to ensure better memory management. So it could be my fault depends on what version you used with your previous app.
However, since iOS 9 has released, Apple might change something related to UICollectionView.

This issue can be replicated by showing the second VC and when it is dismissed, the CollectionView in the initial VC is reloaded

Do you mean you deleted second menu tab associated with second VC, then the initial VC is reloaded?

@wraithseeker
Copy link
Author

I didn't change anything to the menu, here is how it goes in my app.

Tab 1(Initial) & 2 are both UIViewControllers with CollectionViews that display images. Their data is retrieved from a JSON endpoint online.

To replicate the issue. I load the app and click on one of the images. This brings up another view or ViewController.

I dismiss it and I get sent back to Tab 1 which is my initial ViewController and it triggers a reloading of the view or the CollectionView.

Video showing the problem
EDIT: https://www.dropbox.com/s/9x45d0936831geb/bug.mov?dl=0

@kitasuke
Copy link
Owner

Got it. This might be because of my fault. I'll fix it and let you know once I found out something.
Sorry for my inconvenience.

@kitasuke
Copy link
Owner

I've fixed it!
Can you try with the newest version 0.7.2?

@wraithseeker
Copy link
Author

I tried it and it is fixed! Thanks! ありがとうございます。

@kitasuke
Copy link
Owner

😄

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants