0

以下代码不起作用。它使 tableview 从 (0,0) 内容偏移量移动到 (0,-64) 内容偏移量。

-(BOOL)automaticallyAdjustsScrollViewInsets
{
    return NO;
}
-(void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:YES];
    self.automaticallyAdjustsScrollViewInsets = NO;
    self.extendedLayoutIncludesOpaqueBars = NO;
}

此问题仅在 iOS8 中

4

1 回答 1

1
self.navigationcontroller.navigationbar.transculent = NO;

或者

[[UINavigationBar appearance]setTransculent:NO];

我们必须设置上述任一语句来解决tableview滚动问题。xib在我们必须选择导航栏作为推断并将上述外观语句设置在AppDelegate.

于 2015-01-02T05:05:18.100 回答