1 //app尺寸,去掉状态栏 2 3 CGRect appRect = [UIScreenmainScreen].applicationFrame; 4 5 NSLog(@"%f, %f, %f,%f",appRect.origin.x, appRect.origin.y, appRect.size.width,appRect.size.height); 6 7 8 9 //屏幕尺寸 10 11 CGRect screenRect = [UIScreen mainScreen].bounds; 12 13 NSLog(@"%f, %f, %f,%f",screenRect.origin.x, screenRect.origin.y, screenRect.size.width,screenRect.size.height); 14 15 16 17 //状态栏尺寸 18 19 CGRect statusRect = [[UIApplication sharedApplication] statusBarFrame]; 20 21 NSLog(@"%f, %f, %f,%f",statusRect.origin.x, statusRect.origin.y, statusRect.size.width,statusRect.size.height);