#define IPHONE5_HEIGHT_DELTA 88 // iPhone5 追加高度值
+ (BOOL)isiPhone5
{
CGFloat height = [UIScreen mainScreen].bounds.size.height;
CGFloat width = [UIScreen mainScreen].bounds.size.width;
if (MAX(height, width) > 480)
{
return YES;
}
return NO;
}
+ (float)appendedHeightForiPhone5
{
if ([UIScreen isiPhone5])
{
return IPHONE5_HEIGHT_DELTA;
}
return 0;
}
+ (BOOL)isIOS7
{
if ([UIDevice currentDevice].systemVersion.doubleValue >= 7.0f)
{
return YES;
}
return NO;
}
+ (float)appendedHeightForIOS7Statue
{
if ([UIScreen isIOS7])
{
return 20;
}
return 0;
}