Created
July 19, 2014 02:05
-
-
Save tangyumeng/fd4afc41c0f5a73fcb2d to your computer and use it in GitHub Desktop.
iOS7 适配屏幕
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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