Giter VIP home page Giter VIP logo

Comments (5)

natehudson avatar natehudson commented on June 28, 2024

I am also seeing this problem and can't figure out why. Sometimes the text just appears a few seconds later.

Could it have to do with some UI code no running on the main thread?

from uibubbletableview.

eliburke avatar eliburke commented on June 28, 2024

I've been seeing this intermittently since iOS7 as well. I'm using a heavily modified subclass of HPLChatTableViewCell and I assumed that I broke something, but this sounds like behavior I've encountered.

from uibubbletableview.

leilagonzalez avatar leilagonzalez commented on June 28, 2024

Same problem here. Any solutions yet?

I'm also running some code out of the main thread, but when I log the content of the cell everything seems to be ok and the data is already available.

from uibubbletableview.

ihla avatar ihla commented on June 28, 2024

I was facing the same issue when I scroll down/up the rows and then dismissed the keyboard some texts disappeared, I was able to reproduce it quite easy. I found out that the UILabel was not in the view hierarchy of the UITableViewCell when the text disappeared. There are similar issues discussed on the stackoverflow and one recommended solution is to use view tag along with the views which are dynamically added/removed - I tried it and it worked. The code snippet is like this:

[[self.contentView viewWithTag:kCustomViewTag] removeFromSuperview];
self.customView = data.view;
self.customView.tag = kCustomViewTag;
[self.contentView addSubview:self.customView];

from uibubbletableview.

kgrigsby59 avatar kgrigsby59 commented on June 28, 2024

Below is a similar fix that works for me.

- (void)prepareForReuse
{
    [super prepareForReuse];

    if (self.customView.superview == self.contentView) {
        [self.customView removeFromSuperview];
    }
    self.customView = nil;
}

from uibubbletableview.

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.