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

frames removeAll() for example #26

Closed
a75c6 opened this issue May 26, 2016 · 2 comments
Closed

frames removeAll() for example #26

a75c6 opened this issue May 26, 2016 · 2 comments

Comments

@a75c6
Copy link

a75c6 commented May 26, 2016

In the example, self.frames.removeAll() is called for the action changeModeCapture in ViewController.swift. If you take a gif and go to the preview, but then try and go back to the view controller to take another gif, the frames are not removed.

@a75c6
Copy link
Author

a75c6 commented May 26, 2016

I added the following to capturePhoto() in the ViewController:

self.presentViewController(controller, animated: true, completion: nil)
self.frames.removeAll()
self.labelModeCapture.text = "(5 - self.frames.count)"

That clears out the count and resets the frames.

https://gist.github.com/namsoila/5440dcd8f699f36dbd3a843015d35ac9

@remirobert
Copy link
Owner

ok thanks for reporting this issue.

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