CGRect rect = [[UIApplication sharedApplication] statusBarFrame];
状态栏的高度:
float status height = rect.size.height;
导航栏的高度:
float navigationheight = self.navigationController.navigationBar.frame.size.height;
版权声明:本文为博主原创文章,未经博主允许不得转载。
原文地址:http://blog.csdn.net/chengjiamei/article/details/46893945