我知道这在其他编程语言中是可能的。假设我们有以下安排:
- (void) myMethod:(NSString*)variables, ... {
// Handle business here.
}
- (void) anotherMethod:(NSString*)variables, ... {
// We want to pass these variable arguments for handling
[self myMethod:variables, ...]; // Do not pass GO
}
// Start the party:
[self anotherMethod:@"arg1", @"arg2", @"arg3", @"arg4", nil];
让这个在 ObjC 中工作的诀窍是什么?