mna*_*baa 11 uirefreshcontrol swift ios11 xcode9
每当我拉动刷新TableView时,UIRefreshControl似乎都是毛病.以下是我正在使用的代码.有任何想法吗?
在AppDelegate中:
UINavigationBar.appearance().isTranslucent = false
UINavigationBar.appearance().barTintColor = UIColor.red
UINavigationBar.appearance().tintColor = UIColor.white
Run Code Online (Sandbox Code Playgroud)
在UITableViewController中:
self.tableView.refreshControl = UIRefreshControl()
if #available(iOS 11.0, *) {
self.navigationController?.navigationBar.prefersLargeTitles = false
} else {
// Fallback on earlier versions
}
self.tableView.refreshControl = refreshCont
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
3123 次 |
最近记录: |