Some "unsent" statuses were irrelevant : Some UILabels were not dismissedw while reusing an UITableViewCell.

This commit is contained in:
ylecollen 2015-01-12 15:00:35 +01:00
parent 07d554b992
commit 7406878996

View file

@ -1343,7 +1343,7 @@ NSString *const kCmdResetUserPowerLevel = @"/deop";
[cell.attachmentView removeGestureRecognizer:cell.attachmentView.gestureRecognizers[0]];
}
// Remove potential dateTime (or unsent) label(s)
if (cell.dateTimeLabelContainer.constraints.count) {
if (cell.dateTimeLabelContainer.subviews.count > 0) {
if ([NSLayoutConstraint respondsToSelector:@selector(deactivateConstraints:)]) {
[NSLayoutConstraint deactivateConstraints:cell.dateTimeLabelContainer.constraints];
} else {