//取最小值 #define SCREEN_WIDTH MIN(CGRectGetWidth([[UIScreen mainScreen] bounds]),CGRectGetHeight([[UIScreen mainScreen] bounds])) //取最大值 #define SCREEN_HEIGHT MAX(CGRectGetWidth([[UIScreen mainScreen] bounds]),CGRectGetHeight([[UIScreen mainScreen] bounds]))
原文地址:http://blog.csdn.net/u013243469/article/details/41746821