I\'m working with sprite kit and if the user touches the screen, the actions within
override func touchesBegan(touches: NSSet, withEvent event: UIEvent) {
If you want to disable a Buttons user's interaction, just do this when the screen loads.
self.btnname.isUserInteractionEnabled = false
If you want to disable the user interaction as a view, it will be same just remove the button name and add the view's name.
If for some reasons, you want to enable interaction, just change "false" to "true".