bfeher / BFPaperButton

iOS Buttons inspired by Google's Paper Material Design.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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!

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 :)