Skip to content

Instantly share code, notes, and snippets.

@tangyumeng
Created July 19, 2014 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tangyumeng/fd4afc41c0f5a73fcb2d to your computer and use it in GitHub Desktop.
Save tangyumeng/fd4afc41c0f5a73fcb2d to your computer and use it in GitHub Desktop.
iOS7 适配屏幕
#define IOS7_OR_LATER ( [[[UIDevice currentDevice] systemVersion] compare:@"7.0"] != NSOrderedAscending )
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000
if ( IOS7_OR_LATER )
{
self.edgesForExtendedLayout = UIRectEdgeNone;
self.extendedLayoutIncludesOpaqueBars = NO;
self.modalPresentationCapturesStatusBarAppearance = NO;
self.navigationController.navigationBar.translucent = NO;
}
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment