精确计算字符串的宽度
UIFont *font =[UIFont systemFontOfSize:17];
NSDictionary *dic =[[NSDictionary alloc]initWithObjectsAndKeys:font,NSFontAttributeName, nil];
CGSize size =[firstStr sizeWithAttributes:dic];