jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

Added superview checking before removing view. #469

Closed teffi closed 6 years ago

teffi commented 7 years ago

Fix for issue 342.

matej commented 7 years ago

Thanks. Not sure if that's really the issue, but I see no harm in merging that.

matej commented 6 years ago

I double checked and this and the method should not throw and work fine if the superview is nil.

If the view’s superview is not nil, the superview releases the view.

Did this make any difference on your end?