1

I have been using UIBubbleTableView for about two years now without much problem.

Today I checked it on iPHone 6 Plus and to my suprise the UIBubbleTableView looks as weird as in the screen shot below.

enter image description here

Has anyone encountered this issue before? What could be done? I think the author has decided to discontinue the support for the lib. Any alternatives that has the features of UIBubbleTableView? Thanks.

Jay Mayu
  • 17,023
  • 32
  • 114
  • 148

2 Answers2

4

Try replace

(float)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

for

(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

in UIBubbleTableView.m. See UIBubbleTableView issue UIBubbleTableView is not working with 64 bit os device
Quote a comment from another issue about issue reason :

The problem is indeed the call to - (float)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath. When compiled for 64-bit, CGFloat is 64 bit, whereas float is only 32-bit. The method signature doesn't match, so heightForRow is never called. Changing it from float to CGFloat is exactly the right solution.

Huy Nghia
  • 996
  • 8
  • 22
2

Yes, you're right, the author of UIBubbleTableView lib has been stopped support for it. Recently I've to make the similar kind of chat functionality into my app, I was satisfied with SOMessaging lib. Check it out. Its easy to customize and use. And yes, you can check out many other libs available here. But out of them, I filtered some for this answer, kindly check its sample code (whichever fits as per your needs) here's sphchatcollectionview, jsqmessagesviewcontroller and notificationchat.

Hemang
  • 26,840
  • 19
  • 119
  • 186