BFPaperTableViewCell icon indicating copy to clipboard operation
BFPaperTableViewCell copied to clipboard

BOOL letBackgroundLinger doesn't work

Open ChenZhongPu opened this issue 11 years ago • 3 comments

I have set letBackgroundLinger to NO, but when my finger left, the background Color remains.

ChenZhongPu avatar Jan 05 '15 06:01 ChenZhongPu

Hi ChenZhongPu.

Could you be more specific, maybe show some code or anything else that may be relevant?

Thank you

bfeher avatar Jan 05 '15 23:01 bfeher

When a tap is recorded, a background fade fades in. If it is set to linger, it does not get removed until setSelected:NO is called. So when a user taps multiple cells simultaneously, setSelected:NO does not get called by the OS and the background does not fade away as it should.

This is a known bug and I'm not sure how to fix it yet. Will update when I learn more.

bfeher avatar Jan 20 '15 02:01 bfeher

Hi ChenZhongPu,

Your issue is because backgroundColorFadeLayer is not instantiated, cause you don't execute method called setupBFPaperTableViewCell. This method is only called on init, you should call BFPaperTableViewCell awakeFromNib, in your Cell override.

GdeGalleta avatar Dec 27 '16 09:12 GdeGalleta