iOS10 纯 UITableView 将不再下拉

iOS10 plain UITableView will not pull down anymore

自ios10以来,我的普通 UITableView 将不再下拉,除非 UITableView 有足够的行超出屏幕底部。我在 UITableView 上有一个 UIRefreshControl,所以我需要能够将 UITableView 拉下来。

我找到了答案,以防其他人遇到这个问题。自 iOS10 起,您需要将 Bounce Vertical 明确设置为 true。

Objective-C

[self.tableView setAlwaysBounceVertical:YES];

Swift

tableView.alwaysBounceVertical = true

故事板