-
Notifications
You must be signed in to change notification settings - Fork 383
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
PhotosViewController instances cannot be reused #39
Comments
Encountered this same issue. Working on a PR that fixes the issue. Problem was that backgroundColor view properties were only being set on viewDidLoad. Moving the setting of these properties to viewWillAppear fixes the issue and allows for reuse of the NYTPhotosViewController after dismissal. |
That's awesome to hear, @brianneisler. I'll look forward to reviewing that PR! |
PR opened #185. |
+1 |
closing due to inactivity |
The following gif demonstrates what happens when you try to keep a reference to the photos VC around:
This was on @mpkeefe's Swift example branch before he resolved it via aa27285 .
This hints to me that something doesn't get reset properly after the VC is dismissed, and the VC is in a bad state if you try to present it again.
Holding on to and reusing a view controller is perfectly reasonable, even if most of the time a VC is presented only once.
The text was updated successfully, but these errors were encountered: