去掉狀態欄尺寸app
CGRect r = [ UIScreen mainScreen ].applicationFrame;iphone
r=0,20,320,460ip
屏幕尺寸io
CGRect rx = [ UIScreen mainScreen ].bounds;方法
r=0,0,320,480
狀態欄尺寸
CGRect rect;
rect = [[UIApplication sharedApplication] statusBarFrame];
iphone中獲取屏幕分辨率的方法
CGRect rect = [[UIScreen mainScreen] bounds];CGSize size = rect.size;CGFloat width = size.width;CGFloat height = size.height;