Search code examples
iosiphone-6-plusuibubbletableview

UIBubbleTableView issue with iPhone 6 Plus


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.


Solution

  • 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.