覆盖羽声
This commit is contained in:
@@ -154,9 +154,12 @@
|
||||
CGFloat height = [firsModel.content heightForFont:[UIFont systemFontOfSize:14] width:SCREEN_WIDTH-40-16*2-7];
|
||||
QXDynamicCommentHeaderView *header = [[QXDynamicCommentHeaderView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, height+12+40+7+3+9)];
|
||||
[header addTapBlock:^(id _Nonnull obj) {
|
||||
weakSelf.commentView.model = firsModel;
|
||||
weakSelf.commentView.textField.placeholder = [NSString stringWithFormat:@"回复:%@",firsModel.nickname];
|
||||
[weakSelf.commentView.textField becomeFirstResponder];
|
||||
// weakSelf.commentView.model = firsModel;
|
||||
// weakSelf.commentView.textField.placeholder = [NSString stringWithFormat:@"回复:%@",firsModel.nickname];
|
||||
// [weakSelf.commentView.textField becomeFirstResponder];
|
||||
UIPasteboard *p = [UIPasteboard generalPasteboard];
|
||||
p.string = [NSString stringWithFormat:@"%@", firsModel.content];
|
||||
showToast(@"已复制");
|
||||
}];
|
||||
header.delegate = self;
|
||||
header.model = firsModel;
|
||||
@@ -204,11 +207,11 @@
|
||||
if (indexPath.section == 0) {
|
||||
return;
|
||||
}
|
||||
QXDynamicCommentListModel *firsModel = self.dataArray[indexPath.section-1];
|
||||
QXDynamicCommentListModel *model = firsModel.replies[indexPath.row];
|
||||
self.commentView.model = model;
|
||||
self.commentView.textField.placeholder = [NSString stringWithFormat:@"回复:%@",model.nickname];
|
||||
[self.commentView.textField becomeFirstResponder];
|
||||
// QXDynamicCommentListModel *firsModel = self.dataArray[indexPath.section-1];
|
||||
// QXDynamicCommentListModel *model = firsModel.replies[indexPath.row];
|
||||
// self.commentView.model = model;
|
||||
// self.commentView.textField.placeholder = [NSString stringWithFormat:@"回复:%@",model.nickname];
|
||||
// [self.commentView.textField becomeFirstResponder];
|
||||
}
|
||||
|
||||
-(void)didClickDeleteComment:(QXDynamicCommentListModel*)model{
|
||||
@@ -234,7 +237,9 @@
|
||||
}
|
||||
|
||||
-(void)didClickReplyComment:(QXDynamicCommentListModel*)model{
|
||||
|
||||
self.commentView.model = model;
|
||||
self.commentView.textField.placeholder = [NSString stringWithFormat:@"回复:%@",model.nickname];
|
||||
[self.commentView.textField becomeFirstResponder];
|
||||
}
|
||||
#pragma mark - 评论
|
||||
-(void)didClickSendWithText:(NSString*)text model:(nonnull QXDynamicCommentListModel *)model{
|
||||
|
||||
Reference in New Issue
Block a user