当我重新加载UITableView时,它的某些单元格无法显示,但当我触摸屏幕时,它们会自动显示。这是UITableViewCellForRow代码。我正在使用代码[tblBuddyMesssageList reloadData];
重新加载表 if (tableView.tag == UITableViewTagBuddyMessageList)
{
Message *buddyMsg = self.arrBuddyMessages[indexPath.row];
if ([buddyMsg.senderName isEqualToString:applicationDelegate.userInfo.userName] && [buddyMsg.receiverName isEqualToString:self.selectedBuddy.userName])
{
MessageSendByMeCell *cell = [tblBuddyMessageList dequeueReusableCellWithIdentifier:messageSendByMeCellIdentifier forIndexPath:indexPath];
[self configureMessageSendByMeCell:cell forRowAtIndexPath:indexPath];
return cell;
}
else
{
MessageSendByBuddyCell *cell = [tblBuddyMessageList dequeueReusableCellWithIdentifier:messageSendByBuddyCellIdentifier forIndexPath:indexPath];
[self configureMessageSendByBuddyCell:cell forRowAtIndexPath:indexPath];
return cell; }
}