获取状态栏的尺寸
CGRect rect;
rect=[[UIApplication sharedApplication]statusBarFrame];
获取屏幕尺寸
CGRect rect;
rect=[[UIScreen mainScreen]bounds];
CGSize size=rect.size;
CGFloat width=size.width;
CGFloat height=size.height;
NSLog(@"%f",width);
NSLog(@"%f",height);
时间: 2024-10-31 15:02:41