Mỗi khi tôi kéo để làm mới TableView, UIRefreshControl dường như bị trục trặc. Dưới đây là mã tôi đang sử dụng. Bất kỳ ý tưởng?UIRefreshControl() trong iOS 11 Hiệu ứng Glitchy
Trong appdelegate:
UINavigationBar.appearance().isTranslucent = false
UINavigationBar.appearance().barTintColor = UIColor.red
UINavigationBar.appearance().tintColor = UIColor.white
Trong UITableViewController:
self.tableView.refreshControl = UIRefreshControl()
if #available(iOS 11.0, *) {
self.navigationController?.navigationBar.prefersLargeTitles = false
} else {
// Fallback on earlier versions
}
self.tableView.refreshControl = refreshCont
nếu chúng tôi gặp vấn đề tương tự, tôi đã sửa lỗi bằng cách đặt self.extendedLayoutIncludesOpaqueBars = YES, đừng hỏi tôi tại sao – hhanesand
@hhanesand Cảm ơn! – Arco