打印width和height
NSLog("width: %f, height: %f",self.View.frame.size.width, self.View.navigationBar.frame.size.height);
打印frame
NSLog(@"%@",[NSValue valueWithCGRect:self.View.bounds]);
打印width和height
NSLog("width: %f, height: %f",self.View.frame.size.width, self.View.navigationBar.frame.size.height);
打印frame
NSLog(@"%@",[NSValue valueWithCGRect:self.View.bounds]);
转载于:https://www.cnblogs.com/xubojoy/p/3873930.html