jdg / MBProgressHUD

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

initWithView , also add HUD(self) as subview to the passed view? #427

Closed bhargavms closed 8 years ago

bhargavms commented 8 years ago

In initWithView , also add HUD(self) as subview to the passed view? Not just initWithBounds? I can give a PR for this if you think its not a wrong thing to do.

matej commented 8 years ago

Thanks for the suggestions, but that should not be the initializers responsibility.

bhargavms commented 8 years ago

Ok how about a static class method initializer, that just initializes the HUD object to the view bounds and attaches the HUD object to view, but doesnt call showAnimated:

matej commented 8 years ago

Feel free to define a category for yourself if you want that. I would like to keep the API as small as possible and there are already static helpers for that. Although they do call showAnimated: as you pointed out.