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

stop timer on view removal #7

Merged
merged 2 commits into from
Oct 5, 2015

Conversation

cowboyrushforth
Copy link
Contributor

This PR stops the NSTimer if the view is removed, to help prevent cpu being consumed in the background while not visible. It also cleans up some minor Xcode warnings.

* cleanup xcode warnings
@yoavlt
Copy link
Owner

yoavlt commented Oct 4, 2015

Thanks! 🙇
Could you replace NSTimer with CADisplayLink if you could?

@cowboyrushforth
Copy link
Contributor Author

Done. Not sure why the travis is saying it won't compile. Works great for me, let me know your thoughts.

yoavlt added a commit that referenced this pull request Oct 5, 2015
@yoavlt yoavlt merged commit e7b1e8d into yoavlt:swift-2.0 Oct 5, 2015
@yoavlt
Copy link
Owner

yoavlt commented Oct 5, 2015

Awesome!! 👏 👏
Probably, travis build with Xcode6. I will fix it.

@cowboyrushforth cowboyrushforth deleted the stop_timer_on_view_removal branch October 5, 2015 02:11
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.

None yet

2 participants