修改了动态的分享 点赞 举报
This commit is contained in:
@@ -12,13 +12,14 @@
|
||||
#import "NetImageView.h"
|
||||
#import "ThemeColor.h"
|
||||
#import "XPMonentsLayoutConfig.h"
|
||||
#import "NSString+Utils.h"
|
||||
///Model
|
||||
#import "MonentsCommentModel.h"
|
||||
///View
|
||||
#import "XPMonentsReplyTableViewCell.h"
|
||||
#import "XPMonentsReplyMoreTableViewCell.h"
|
||||
|
||||
@interface XPMonentsCommentTableViewCell ()<UITableViewDelegate, UITableViewDataSource>
|
||||
@interface XPMonentsCommentTableViewCell ()<UITableViewDelegate, UITableViewDataSource, XPMonentsReplyMoreTableViewCellDelegate>
|
||||
///容器
|
||||
@property (nonatomic,strong) UIStackView *stackView;
|
||||
///评论者
|
||||
@@ -139,10 +140,18 @@
|
||||
|
||||
XPMonentsReplyMoreTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([XPMonentsReplyMoreTableViewCell class])];
|
||||
cell.leftCount = self.commentInfo.replyInfo.leftCount;
|
||||
cell.delegate = self;
|
||||
return cell;
|
||||
|
||||
}
|
||||
|
||||
#pragma mark - XPMonentsReplyMoreTableViewCellDelegate
|
||||
- (void)xPMonentsReplyMoreTableViewCellDidClickMoreReply:(XPMonentsReplyMoreTableViewCell *)view {
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(xPMonentsCommentTableViewCell:didClickMoreReply:)]) {
|
||||
[self.delegate xPMonentsCommentTableViewCell:self didClickMoreReply:self.commentInfo];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - Getters And Setters
|
||||
- (void)setCommentInfo:(MonentsCommentModel *)commentInfo {
|
||||
_commentInfo = commentInfo;
|
||||
@@ -154,7 +163,7 @@
|
||||
}
|
||||
self.commentLabel.text = _commentInfo.content;
|
||||
self.commentNickLabel.text = nick;
|
||||
self.commentDateLabel.text = _commentInfo.publishTime;
|
||||
self.commentDateLabel.text = [NSString stringWithTimeStamp:_commentInfo.publishTime];
|
||||
self.tableView.hidden = _commentInfo.replyInfo.replyList.count <=0;
|
||||
self.datasource = _commentInfo.replyInfo.replyList;
|
||||
[self.tableView reloadData];
|
||||
|
Reference in New Issue
Block a user