获取屏幕尺寸的方法

app尺寸,去掉状态栏

CGRect r = [ UIScreen mainScreen ].applicationFrame;

屏幕尺寸

CGRect rx = [ UIScreen mainScreen ].bounds;

状态栏尺寸

CGRect rect = [[UIApplication sharedApplication] statusBarFrame];

uiview尺寸

CGRect rect = self.view.frame;

你可能感兴趣的:(获取屏幕尺寸的方法)