Swift3 iOS – How to make UITapGestureRecognizer trigger function
From your code you are using swift 3.0 so change your selector syntax like this let tapGesture = UITapGestureRecognizer(target: self, action: #selector(self.tapBlurButton(_:))) and Your function like this func tapBlurButton(_ sender: UITapGestureRecognizer) { print(“Please Help!”) } Edit: Not idea that you are using button with tap gesture, instead of that use inbuilt method addTarget for button … Read more