PINRemoteImage icon indicating copy to clipboard operation
PINRemoteImage copied to clipboard

Add support for UIButton setBackgroundImage?

Open MrMatthewDavis opened this issue 9 years ago • 3 comments

Is is possible to use the PINRemoteImage categories to set the background image of UIButtons? This is usually the primary use (at least in my experience) for images in UIButtons. Or do I have to use the PINRemoteImageManager to download and image and then set the image on the button's background on the main thread?

MrMatthewDavis avatar Mar 31 '16 22:03 MrMatthewDavis

Happy to accept a pull request to add this support!

garrettmoon avatar Mar 31 '16 22:03 garrettmoon

@garrettmoon Ok i submitted a PR (#178) to add this functionality (along with some additions to the example project to showcase the changes).

MrMatthewDavis avatar Apr 01 '16 23:04 MrMatthewDavis

Thank you! I'll try and take a look soon.

garrettmoon avatar Apr 01 '16 23:04 garrettmoon