Last active
December 11, 2015 11:28
-
-
Save ttsubono/4593627 to your computer and use it in GitHub Desktop.
画面系の便利関数
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
/** 4インチ画面ならtrue */ | |
#define IS_4INCH_SCREEN (fabs((double)[[UIScreen mainScreen] bounds].size.height - (double)568) < DBL_EPSILON) | |
/** 画面高(ステータスバー領域を含まない) */ | |
#define SCREEN_HEIGHT CGRectGetHeight([UIScreen mainScreen].applicationFrame) | |
/** 画面幅 */ | |
#define SCREEN_WIDTH CGRectGetWidth([UIScreen mainScreen].applicationFrame) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment