Setting a button’s target/action and passing a particular string to the action [closed]

You can’t pass arguments when you use @selector.

@selector(buttonClicked:WithString:title)
//              This here is invalid^^

That operator can only be used on a method name; the selector you get from it is later used to call the method, at which point arguments can be passed.

Leave a Comment