PINRemoteImage icon indicating copy to clipboard operation
PINRemoteImage copied to clipboard

Allow setting a new instance to [PINRemoteImage sharedManager]

Open sainttail opened this issue 8 years ago • 2 comments

For example, when logout and login again in the app. We need to initiate the new session for PinRemoteImageManager but we have no way of setting this new session configuration to sharedImageManager when it is already instantiate.

Because of this we will lose all the categories support for UIImage and UIButton since those depends on [PinRemoteImageManager sharedManager] since the only thing we can do is create a new PinRemoteImageManager instance and cannot assign to sharedImageManager

Do I miss something or this is the design decision?

Thanks.

sainttail avatar Aug 29 '16 17:08 sainttail

+1 this is somewhat a pain in the butt in many situations, it would be ideal to be able to configure multiple instances of PINRemoteImageManager that did not share a global state.

wiseoldduck avatar Sep 20 '18 19:09 wiseoldduck

I would love to see this as well and would happily review [RFC]s on how to do it!

garrettmoon avatar Oct 10 '18 18:10 garrettmoon