mutualmobile / MMProgressHUD

An easy-to-use HUD interface with personality.
MIT License
705 stars 131 forks source link

Can I change the "spin animation" globally? #35

Closed Arthraim closed 9 years ago

Arthraim commented 9 years ago

I tried something like this

[MMProgressHUD sharedHUD].hud.animationImages = @[/*...*/];

then I realized every time I called showWithTitle:status:confirmationMessage:cancelBlock:images: would wipe out the value of animationImages property in MMProgressHUD instance which would also be used for evaluating animationImages property in [MMProgressHUD sharedHUD].hud as well.

So is that possible for me to use a class method (or appearance) to change the animationImages globally, even if I only call show, the images would be changed?

larsacus commented 9 years ago

I don't currently have support for globally changing the animation images being used. All customization of that property goes through the class and instance methods like you have already found:

+ (void)showWithTitle:(NSString *)title
               status:(NSString *)status
          cancelBlock:(void(^)(void))cancelBlock
               images:(NSArray *)images;

With a little bit of refactoring, this could be possible.

larsacus commented 9 years ago

Closing this as resolved since #36.