我正在使用Swift游乐场试图制作一个交互式应用程序,用户可以在其中单击按钮执行操作。Swift Playgrounds - 使用未解析的标识符'self'
let tapGesture = UITapGestureRecognizer(target: self, action: #selector(self.tapBlurButton(_:)))
func tapBlurButton(_ sender: UITapGestureRecognizer) {
print("Please Help!")
}
这是给我的错误:
'use of unresolved identifier self'
。 我如何在Swift 3中修复这个问题?