New Chat screen: Patch chat picture option

This commit is contained in:
giomfo
2015-08-14 18:39:42 +02:00
parent 9cade40b83
commit 3a32a9acfc
2 changed files with 15 additions and 5 deletions
@@ -362,14 +362,16 @@
}
else if (indexPath.row == 1)
{
cell = [tableView dequeueReusableCellWithIdentifier:@"roomPictureCell"];
if (!cell)
MXKTableViewCellWithLabelAndImageView *roomPictureCell = [tableView dequeueReusableCellWithIdentifier:[MXKTableViewCellWithLabelAndImageView defaultReuseIdentifier]];
if (!roomPictureCell)
{
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:@"roomPictureCell"];
roomPictureCell = [[MXKTableViewCellWithLabelAndImageView alloc] init];
}
cell.textLabel.text = NSLocalizedStringFromTable(@"room_creation_appearance_picture", @"Vector", nil);
cell.imageView.image = [UIImage imageNamed:@"logo"];
roomPictureCell.mxkLabel.text = NSLocalizedStringFromTable(@"room_creation_appearance_picture", @"Vector", nil);
roomPictureCell.mxkImageView.image = [UIImage imageNamed:@"placeholder"];
cell = roomPictureCell;
}
}
else if (indexPath.section == privacySection)