Commit 565ad485 authored by DanmeiChen's avatar DanmeiChen
Browse files

avoid overlapping chat cells

parent 470e7add
Pipeline #26804 failed with stage
in 14 seconds
......@@ -255,11 +255,11 @@ static const int BASIC_EVENT_LIST=15;
kCellId = NSStringFromClass(UIChatBubblePhotoCell.class);
kCellId = NSStringFromClass(UIChatBubbleTextCell.class);
// To use less memory and to avoid overlapping. To be improved.
UIChatBubbleTextCell *cell = [tableView dequeueReusableCellWithIdentifier:kCellId];
if (!cell) {
cell = [[NSClassFromString(kCellId) alloc] initWithIdentifier:kCellId];
cell = [[NSClassFromString(kCellId) alloc] initWithIdentifier:kCellId];
[cell setEvent:event];
if (chat) {
cell.isFirst = [self isFirstIndexInTableView:indexPath chat:chat];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment