在viewDidLoad上设置CGRectZero从导航栏下开始计算起始位置
if ([self respondsToSelector:@selector(setEdgesForExtendedLayout:)]) {
self.edgesForExtendedLayout = UIRectEdgeNone;
}
或者
self.nabigationcontroller.navigationbar.translucent = yes;
tableview在有导航栏的情况下会偏移64个像素的解决方法
原文:http://www.cnblogs.com/allenwuhen/p/7436445.html