奇葩代码,

  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)

posted @ 2013-12-26 17:03  路在脚下,  阅读(171)  评论(0编辑  收藏  举报