I am trying to pass a NSString parameter through action:@selector. I have tried many things such as
action:@selector(function:example)
action:@selector(function:example)
action:@selector(function) withObject:example
None of these are working for me and I have no Idea what to do.
Here is the method I am trying to select
- (void) function: (NSString *)testString{
//Whatever stuffz
}
And here is the complete line of code the selector is in
[testButton addTarget:self action:@selector(function:) forControlEvents:UIControlEventTouchUpInside];