标签:io os sp log bs size ios ui nbsp
CGRect frame = [[UIScreen mainScreen] bounds];
NSLog(@"frame :%@",frame);
这样输入是null
NSLog(@"frame :%f",frame.size.width); 这样有值
[[UIScreen mainScreen] bounds].size.width, [[UIScreen mainScreen] bounds].size.height
屏幕的宽和高
标签:io os sp log bs size ios ui nbsp
原文地址:http://www.cnblogs.com/niit-soft-518/p/4082756.html