Giter Site home page Giter Site logo

Comments (5)

vially avatar vially commented on August 24, 2024

I think it has to do with the way table views reuse cells in order to speed up things. So basically what might happen is when you reload your data the table view reuses an existing cell which has the background color already set.
I've been bitten by this problem as well and the way I managed to fix it is by doing something like this:

MCSwipeTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MCSwipeTableViewCell"];
cell.colorIndicatorView.backgroundColor = UIColor.clearColor;

in your - tableView: cellForRowAtIndexPath: method.

But keep in mind that colorIndicatorView is a private property of the MCSwipeTableViewCell class and you might have to also include this category declaration:

@interface MCSwipeTableViewCell ()

@property (nonatomic, strong) UIView *colorIndicatorView;

@end

from mcswipetableviewcell.

WillChilcutt avatar WillChilcutt commented on August 24, 2024

Vially,

I had the same issue as Fabiosoft and your solution worked great. Thanks! Just don't forget the remove the colorIndicatorView property from the .m file or you get an error.

from mcswipetableviewcell.

vially avatar vially commented on August 24, 2024

Glad it helped. Hopefully someone will come up with a cleaner solution for the next release.

from mcswipetableviewcell.

alikaragoz avatar alikaragoz commented on August 24, 2024

I'll take a look at it a little bit later in the day. In the mean time, pull requests are welcome 😻

from mcswipetableviewcell.

alikaragoz avatar alikaragoz commented on August 24, 2024

Fixed e3aab55

from mcswipetableviewcell.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.