#define IS_IOS8_0 ([[[UIDevice currentDevice] systemVersion] floatValue] < 8.0)
#define WIDTH [UIScreen mainScreen].bounds.size.width
#define HEIGHT [UIScreen mainScreen].bounds.size.height
#define SCREEN_WIDTH (IS_IOS8_0 ? HEIGHT : WIDTH)
#define SCREEN_HEIGHT (IS_IOS8_0 ? WIDTH : HEIGHT)
时间: 2024-11-02 22:44:43