rjinxx/RJBadgeKit

小红点跑偏了,在默认情况下

Closed this issue · 3 comments

wx20180305-103443
小红点跑偏了,在默认情况下

你是直接加在cell上了么,还是加在icon imageView上的?

imageview上的,3月2号pod的版本没有refreshBadgeView这个方法,启动后不掉用setBadgeForKeyPath,也会显示红点

是cell复用引起的,你可以在endDisplayCell的回调中unObservePath, 然后在willDisPlayCell的时候重新addObservePath或者每次cellForItemAtIndexPath重新configCell/Data的时候直接把UIImageView删除后重新关联对应的path后new一个