CGFloat height =[@"填入Label.text"boundingRectWithSize:CGSizeMake(@“寬度”, CGFLOAT_MAX)
options:NSStringDrawingUsesLineFragmentOrigin
attributes:[NSDictionary dictionaryWithObject:[UIFont systemFontOfSize:15]
forKey:NSFontAttributeName] context:nil].size.height;
切圓角
Label.layer.cornerRadius = 5;//半徑
Label.layer.masksToBound = YES;