代码 里面 跟 xib 里面要一致,不然 程序不知道 往东 往西了,

        CGSize contentSize = [self.contentLabel.textsizeWithFont:self.contentLabel.fontconstrainedToSize:CGSizeMake(self.contentLabel.frame.size.width,MAXFLOAT) lineBreakMode:NSLineBreakByWordWrapping];

有下面这玩意计算 高度计算不准确,

       // self.contentLabel.lineHeightMultiple = 1.5;

posted @ 2013-07-06 17:50  路在脚下,  阅读(161)  评论(0编辑  收藏  举报