在ios7上,创建一个UITableView的controller,并套在UINavigationController上,出现视图上移,在navbar的后面了。
1.
float systemVersion = [[[UIDevice currentDevice] systemVersion] floatValue];
if (systemVersion >= 7.0) {
self.edgesForExtendedLayout = UIRectEdgeNone;
}
2
self.navigationController.navigationBar.translucent = NO;
这样,controller中的view就在nabber下面了,不会被藏起来了。