+ (CGSize)getframeAndStr:(NSString*)str width:(CGFloat)width height:(CGFloat)height font:(UIFont *)font
{
CGSize size;
if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) {
size = [str boundingRectWithSize:CGSizeMake(width, height)
options:NSStringDrawingUsesLineFragmentOrigin | NSStringDrawingUsesFontLeading
attributes:@{NSFontAttributeName:font}
context:nil].size;
} else {
size = [str sizeWithFont:font constrainedToSize:CGSizeMake(width, height)];
}
return size;
}