The method takes one parameter, so you must provide it. If you don't have the sender you want to give, just pass nil:
[self myMethod:nil];
You can also overload the method as a convenience:
- (void)myMethod;
- (void)myMethod:(id)sender;
- (void)myMethod { [self myMethod:nil]; }
- (void)myMethod:(id)sender { }
source
share