Ios 默认情况下,UIRefreshControl添加奇怪的插入

Ios 默认情况下,UIRefreshControl添加奇怪的插入,ios,uitableview,uirefreshcontrol,Ios,Uitableview,Uirefreshcontrol,我正在通过执行以下操作将UIRefreshControl添加到一个非常默认的UITableView中 iOS SDK 8.1 自身是UITableViewController的实例 UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init]; refreshControl.backgroundColor = [UIColor flatPeterRiverColor]; refreshControl.tintColor =

我正在通过执行以下操作将UIRefreshControl添加到一个非常默认的UITableView中

iOS SDK 8.1 自身是UITableViewController的实例

UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
refreshControl.backgroundColor = [UIColor flatPeterRiverColor];
refreshControl.tintColor = [UIColor whiteColor];
[refreshControl addTarget:self
                   action:@selector(triggerSync)
         forControlEvents:UIControlEventValueChanged];
[self setRefreshControl:refreshControl];
发生的情况如下:


有一个奇怪的顶部插图,我从未设置过,只有在设置UIRefreshControl时才会出现。以前有人经历过吗?我敢肯定它在iOS 7.0中运行得很好。

老话题,我不知道你是否仍在体验它,但对于那些想知道如何修复它的人,我找到了一个快速解决方案

您只需在节中设置标题的高度。 我首先尝试使用0,但没有结果

所以我将所有部分的值都设置为1.0,结果成功了


希望有此帮助

实际上,这似乎是由于
automaticallyAdjustsScrollViewInsets
属性造成的。