MBProgressHUD icon indicating copy to clipboard operation
MBProgressHUD copied to clipboard

Improve auto layout code

Open matej opened this issue 10 years ago • 2 comments

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.

matej avatar Jan 31 '16 18:01 matej

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

danielphillips avatar Feb 05 '16 16:02 danielphillips

Thanks. Addressed in https://github.com/jdg/MBProgressHUD/commit/89218d6043a648a65077229e719373abe6951b9a.

matej avatar Feb 11 '16 20:02 matej