when I use boundingRectWithSize to calculate the height of the text,it crash.I find it maybe because the text have some emoji. Somebody can tell me how to solve this.
CGFloat kScreenMargin = 15.;
CGFloat kScreenWidth = [UIScreen mainScreen].bounds.size.width;
self.content = @"Eefggg";
CGFloat contentH = [self.content boundingRectWithSize:CGSizeMake(kScreenWidth - 2 * kScreenMargin, MAXFLOAT)
options:NSStringDrawingUsesLineFragmentOrigin
attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:14]} context:nil].size.height;