我正在使用UIRefreshControl来允许在QuickDialog控制器上进行向下刷新。
我使用以下代码:
UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
[refreshControl addTarget:self action:@selector(refreshVehicles:) forControlEvents:UIControlEventValueChanged];
[vc.quickDialogTableView addSubview:refreshControl];
在iOS6和XCode 4上一切正常,但是当我尝试使用适用于iOS7的XCode 5构建应用程序时,不会显示刷新控件。
知道为什么会发生这种情况吗?