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

Set removeFromSuperViewOnHide to YES for convenience methods #225

Merged
merged 1 commit into from
Aug 18, 2014

Conversation

yvbeek
Copy link

@yvbeek yvbeek commented Aug 18, 2014

By setting removeFromSuperViewOnHide to YES for this convenience method we reduce the chance of memory leaks. People use [MBProgressHUD showHUDAddedTo:animated:] together with hide: and simply forget to remove the HUD view.

If people want the old behavior, they can simply set removeFromSuperViewOnHide to NO after calling [MBProgressHUD showHUDAddedTo:animated:].

@yvbeek yvbeek mentioned this pull request Aug 18, 2014
matej added a commit that referenced this pull request Aug 18, 2014
Set removeFromSuperViewOnHide to YES for convenience methods
@matej matej merged commit 2216078 into jdg:master Aug 18, 2014
@matej
Copy link
Collaborator

matej commented Aug 18, 2014

Thanks!

@yvbeek
Copy link
Author

yvbeek commented Aug 18, 2014

Thank you for merging!

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