以下代码不起作用。它使 tableview 从 (0,0) 内容偏移量移动到 (0,-64) 内容偏移量。
-(BOOL)automaticallyAdjustsScrollViewInsets
{
return NO;
}
-(void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:YES];
self.automaticallyAdjustsScrollViewInsets = NO;
self.extendedLayoutIncludesOpaqueBars = NO;
}
此问题仅在 iOS8 中