#import <Foundation/Foundation.h>
#define IOS7_OR_LATER ( [[[UIDevice currentDevice] systemVersion] compare:@"7.0"] != NSOrderedAscending )
#define DEVICE_IS_IPHONE5 ([[UIScreen mainScreen] bounds].size.height == 568)
@interface
Global :
NSObject
+(
void
)SetSubViewExternNone:(UIViewController *)viewController;
@end
#import "Global.h"
@implementation
Global
+(
void
)SetSubViewExternNone:(UIViewController *)viewController
{
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000
if
( IOS7_OR_LATER )
{
viewController.edgesForExtendedLayout = UIRectEdgeNone;
viewController.extendedLayoutIncludesOpaqueBars =
NO
;
viewController.modalPresentationCapturesStatusBarAppearance =
NO
;
viewController.navigationController.navigationBar.translucent =
NO
;
}
#endif // #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000
}
@end