这样我加refreshcontrol
到tableview
,但是背景颜色是白色的。我如何设置它的默认?谢谢。刷新查看背景颜色
var refreshControl:UIRefreshControl!
refreshControl = UIRefreshControl()
refreshControl.addTarget(self, action: "refresh:", forControlEvents: UIControlEvents.ValueChanged)
tableView.addSubview(refreshControl)
UPD:而且它不工作的顺利开展。
你确定这是所有的refreshControl背景,而不是tableView的超级视图颜色? –
tableview的superview颜色显示在那里,lightgray – aaisataev
使用'refreshControl.backgroundColor'不会帮助吗? – Tj3n