Given that you have a method
-(void)aSelector:(id)anyArgument;
And have set up a UIButton programmatically
UIButton *myButton = [[UIButton alloc] init]
Alright, I get the idea that when you create a UIButton, you have to use the method
[myButton addTarget:nil action@selector(aSelector:) for ControlEvents:UIControlEventTouchUpInside];
But where do I pass the argument? I know that normally, you would use
[myButton withObject:anyArgument];
But NSControl doesn't allow for that but it is possible as the colon after the selector name indicates so.