I'm trying to create a method with an argument in objective-c, the argument is an amount of seconds before the actual method starts.
I'm trying to avoid using the [self performSelector:(SEL) withObject:(id) afterDelay:(NSTimeInterval)];
because having the delay within my method would actually save me a lot of coding as I am planning to add other arguments to this method.
Example of the method:
-(void) startMethodAfterArgumentDelay: (NSTimeInterval *)delay{
NSLog(@"perform action after argument delay");
}
and how to call it:
[self startMethodAfterArgumentDelay:3.0f];
Any help would be greatly appreciated!