@@ -174,7 +174,7 @@ - (void)setCurPriMsg:(PrivateMessage *)curPriMsg andPrePriMsg:(PrivateMessage *)
174
174
// 有图片
175
175
[_contentLabel setY: 2 *kMessageCell_PadingHeight + mediaViewHeight];
176
176
177
- CGFloat contentWidth = [_curPriMsg isSingleBigMonkey ]? [MessageMediaItemCCell singleCcellSize ].width : kMessageCell_ContentWidth ;
177
+ CGFloat contentWidth = [_curPriMsg isSingleBigMonkey ]? [MessageMediaItemCCell monkeyCcellSize ].width : kMessageCell_ContentWidth ;
178
178
bgImgViewSize = CGSizeMake (contentWidth +2 *kMessageCell_PadingWidth ,
179
179
mediaViewHeight +textSize.height + kMessageCell_PadingHeight *(_curPriMsg.content .length > 0 ? 3 :2 ));
180
180
} else if (curPriMsg.file || curPriMsg.voiceMedia ) {
@@ -232,7 +232,9 @@ - (void)setCurPriMsg:(PrivateMessage *)curPriMsg andPrePriMsg:(PrivateMessage *)
232
232
_contentLabel.textColor = [UIColor blackColor ];
233
233
_bgImgView.frame = bgImgViewFrame;
234
234
}
235
- if (_voiceView) {
235
+ if (_voiceView
236
+ || [_curPriMsg isSingleBigMonkey ]
237
+ ) {
236
238
bgImg = nil ; // 使用bubbleView的背景
237
239
_voiceView.type = BubbleTypeRight;
238
240
}
@@ -246,7 +248,7 @@ - (void)setCurPriMsg:(PrivateMessage *)curPriMsg andPrePriMsg:(PrivateMessage *)
246
248
[_bgImgView setImage: bgImg];
247
249
248
250
if (_mediaView) {
249
- CGFloat contentWidth = [_curPriMsg isSingleBigMonkey ]? [MessageMediaItemCCell singleCcellSize ].width : kMessageCell_ContentWidth ;
251
+ CGFloat contentWidth = [_curPriMsg isSingleBigMonkey ]? [MessageMediaItemCCell monkeyCcellSize ].width : kMessageCell_ContentWidth ;
250
252
[_mediaView setSize: CGSizeMake (contentWidth, mediaViewHeight)];
251
253
[_mediaView reloadData ];
252
254
}
@@ -336,7 +338,7 @@ + (CGFloat)mediaViewHeightWithObj:(PrivateMessage *)curPriMsg{
336
338
mediaViewHeight += [MessageMediaItemCCell ccellSizeWithObj: curPriMsg.nextImg].height ;
337
339
}else {
338
340
if ([curPriMsg isSingleBigMonkey ]) {
339
- mediaViewHeight += [MessageMediaItemCCell singleCcellSize ].height ;
341
+ mediaViewHeight += [MessageMediaItemCCell monkeyCcellSize ].height ;
340
342
}else {
341
343
for (HtmlMediaItem *curItem in curPriMsg.htmlMedia .imageItems ) {
342
344
mediaViewHeight += [MessageMediaItemCCell ccellSizeWithObj: curItem].height +kMessageCell_PadingHeight ;
@@ -377,7 +379,7 @@ - (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollection
377
379
itemSize = [MessageMediaItemCCell ccellSizeWithObj: _curPriMsg.nextImg];
378
380
}else {
379
381
if ([_curPriMsg isSingleBigMonkey ]) {
380
- itemSize = [MessageMediaItemCCell singleCcellSize ];
382
+ itemSize = [MessageMediaItemCCell monkeyCcellSize ];
381
383
}else {
382
384
HtmlMediaItem *curItem = [_curPriMsg.htmlMedia.imageItems objectAtIndex: indexPath.row];
383
385
itemSize = [MessageMediaItemCCell ccellSizeWithObj: curItem];
0 commit comments