奇葩代码,
self.commentTitleLabel.frame = CGRectMake(self.commentTitleLabel.frame.origin.x, self.commentChatView.frame.origin.y - 3, self.commentTitleLabel.frame.size.width, self.commentTitleLabel.frame.size.height);
if (info.comment.length == 0 || !info.comment | [info.comment isEqualToString:@""]) {
self.commentChatView.frame = CGRectMake(self.commentChatView.frame.origin.x, self.commentChatView.frame.origin.y, self.commentChatView.frame.size.width, 0);
self.commentTitleLabel.frame = CGRectMake(self.commentTitleLabel.frame.origin.x, self.commentChatView.frame.origin.y - 3, self.commentTitleLabel.frame.size.width, 0);
}
又重新赋值, self.commentTitleLabel.frame.size.height(20) -----》0------》 self.commentTitleLabel.frame.size.height(0)