我过去曾经用过这个.
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?)
{
self.view.endEditing(true)
}
Run Code Online (Sandbox Code Playgroud)
但现在在Xcode 8 beta中我收到此错误:
声明touchBegan(touches:withEvent)具有与任何潜在覆盖不同的参数名称.
有什么想法吗?