Argument of ‘#selector’ does not refer to an ‘@objc’ method, property, or initializer

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.

Leave a Comment