The problem is that in #selector(self.action()), self.action() is a method call. You don’t want to call the method; you want to name the method. Say #selector(action) instead: lose the parentheses, plus there’s no need for the self.
The problem is that in #selector(self.action()), self.action() is a method call. You don’t want to call the method; you want to name the method. Say #selector(action) instead: lose the parentheses, plus there’s no need for the self.