MBProgressHUD
MBProgressHUD copied to clipboard
Improve auto layout code
Constraints are currently recreated whenever the configuration changes. Reusing them would be nicer, but could potentially produce way messier code. Not sure how to best handle this. Also not sure if it's worth the trouble. Suggestions welcome.
Just a quick note to say that your-updateConstraints method should call [super updateConstraints] at the end of the method as per documentation.
https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIView_Class/#//apple_ref/occ/instm/UIView/updateConstraints
Thanks. Addressed in https://github.com/jdg/MBProgressHUD/commit/89218d6043a648a65077229e719373abe6951b9a.