Not working with button with image or background image
yeahdongcn opened this issue · comments
Thank you for finding this bug! Unfortunately I'm on vacation at the moment (it's Japan's second longest public holiday) so I can't take a stab at this until next week. Sorry!
Could you be a bit more specific?
Are you able to view this gif I made of what I would consider to be working correctly with image and background image?
If you would like to use a rounded button with a non-rounded image, then right now only the Flat version supports this. I will add support for Raised version soon.
After the image button touch down, seems the UIButton implementation adds a gray color layer on top of it, this makes the circle obscure
I do not see that happening in my gif. Did you set the image for states other than UIControlStateNormal? Am I missing the mark completely here?
I'm missing [weakself.weather setImage:responseObject forState:UIControlStateHighlighted];
It's okay now, thanks!
Sorry I should have made that more clear in the documentation. Glad that you sorted it out :)