此代码:
refreshControl.addTarget(self,
action: Selector("refreshTable"),
forControlEvents: UIControlEvents.ValueChanged)
如何在Xcode 6的Interface Builder中以图形方式执行此操作?
答案 0 :(得分:0)
您是否尝试过控件从控件拖动到视图控制器?首先设置处理程序
@IBAction func refreshTable {
// refresh the table
}