Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix reloadAssets still showing pictures as selected in collection view #101

Merged
merged 1 commit into from
Feb 15, 2016
Merged

fix reloadAssets still showing pictures as selected in collection view #101

merged 1 commit into from
Feb 15, 2016

Conversation

aronse
Copy link
Contributor

@aronse aronse commented Jan 30, 2016

when using ImagePickerController as a lazy var, we are able to reset to the default state using imagePicker.stack.resetAssets([]), which works but does not reset the collection view selection (pictures are still marked as selected), as well as the collectionView contentOffset

(see #70)

@zenangst
Copy link
Contributor

@aronse Hey man! Thanks for the pull request. One question, how come you added a new demo? We prefer not to use Storyboards in our examples because it makes it harder to review here on GitHub. Hope you understand 😎

NSNotificationCenter.defaultCenter().addObserver(self,
selector: "didReloadAssets:",
name: ImageStack.Notifications.stackDidReload,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind cleaning up the whitespace in this method call?

@zenangst
Copy link
Contributor

Oh I see now, you added the Storyboard to the existing demo. Sorry for the misunderstanding in my previous comment, however, it would be cleaner if you just left it like it was before in the old demo.

@aronse
Copy link
Contributor Author

aronse commented Feb 15, 2016

Sure! I just changed the demo to illustrate the issue. Let me put back the old one ;)

@aronse
Copy link
Contributor Author

aronse commented Feb 15, 2016

@zenangst Alright, all good. I also squashed my changes into one single commit so it's easier to read/merge. Let me know if you need anything else 😎

zenangst added a commit that referenced this pull request Feb 15, 2016
…onview

fix reloadAssets still showing pictures as selected in collection view
@zenangst zenangst merged commit abfec59 into hyperoslo:master Feb 15, 2016
@zenangst
Copy link
Contributor

@aronse

21c04a98-e470-11e4-817a-af133f90cd01

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

Successfully merging this pull request may close these issues.

2 participants