iOS7中计算UILabel中字符串的高度
//********计算NSString宽高的方法 *******
//先给最大值 作为参数
CGSize maxSize = CGSizeMake(MAXFLOAT, 25);
//用字符串的bounding方法 根据字体来算大小
CGFloat testW = [test.text boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:17]} context:nil].size.width;
self.zikuan = testW;
test.frame = CGRectMake(0, 0,testW, 25);