We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f98a54 commit 38ec5abCopy full SHA for 38ec5ab
1 file changed
Coding_iOS/Models/ProjectTopic.m
@@ -168,7 +168,7 @@ - (void)configWithComment:(ProjectTopic *)comment andAnswer:(ProjectTopic *)answ
168
{
169
if (answer) {
170
if (answer.child_comments) {
171
- [answer.child_comments insertObject:comment atIndex:0];
+ [answer.child_comments addObject:comment];
172
answer.child_count = @(answer.child_count.integerValue + 1);
173
}else{
174
answer.child_comments = @[comment].mutableCopy;
@@ -199,7 +199,7 @@ - (BOOL)canEdit
199
[Login isLoginUserGlobalKey:self.project.owner_user_name]);// 项目创建者
200
}
201
- (NSInteger)commentsDisplayNum{
202
- return MIN(_child_comments.count, 2);
+ return MIN(_child_comments.count, 6);
203
204
- (void)change_is_up_voted{
205
_is_up_voted = @(!self.is_up_voted.boolValue);
0 commit comments