1 self.navigationController.navigationBar.translucent = NO;1 @property(nonatomic,assign) UIRectEdge edgesForExtendedLayout NS_AVAILABLE_IOS(7_0); // Defaults to UIRectEdgeAll
2 @property(nonatomic,assign) BOOL extendedLayoutIncludesOpaqueBars NS_AVAILABLE_IOS(7_0); // Defaults to NO, but bars are translucent by default on 7_0.
3 @property(nonatomic,assign) BOOL automaticallyAdjustsScrollViewInsets NS_AVAILABLE_IOS(7_0); // Defaults to YES 属性edgesForExtendedLayout,意思大概是边缘向四周展开
1 self.edgesForExtendedLayout = UIRectEdgeNone;1 // self.extendedLayoutIncludesOpaqueBars = NO;1 self.automaticallyAdjustsScrollViewInsets = YES;1 tableView.contentInset = UIEdgeInsetsMake( x -35, 0, 0, 0);1 tableView.sectionFooterHeight = 0;
2
3 tableView.sectionHeaderHeight = x;
原文:http://www.cnblogs.com/wangxiaofeinin/p/3532831.html