我想问你如何在电视单元下面显示UIActivityControl。这就是现在显示的方式。谢谢
(self.tableView.refreshControl = self.refreshControl不起作用)
代码:
override func viewDidLoad() {
super.viewDidLoad()
self.refreshControl = UIRefreshControl()
self.refreshControl.attributedTitle = NSAttributedString(string: "Aktualizace")
self.refreshControl.addTarget(self, action: "refresh:", forControlEvents: UIControlEvents.ValueChanged)
self.view.addSubview(self.refreshControl)
self.view.bringSubviewToFront(self.tableView)
}
您不需要refresh_control成员,也不需要将refresh_control添加为子视图。
UITableViewController具有refreshControl成员。
尝试这个:
self.refreshControl = UIRefreshControl()
self.refreshControl.attributedTitle = NSAttributedString(string: "Aktualizace")
self.refreshControl.addTarget(self, action: "refresh:", forControlEvents: UIControlEvents.ValueChanged)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句