options,attributes
CGRect rect= [str boundingRectWithSize:CGSizeMake(100, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin|NSStringDrawingUsesFontLeading attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:20.0]} context:nil];
其中,options 参数请使用: NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading
设置两个枚举,不要设置一个。