Reputation: 2467
To call a method with multiple arguments...my method name is getDataToDisplay. I have a compilation error.
+ (void) getDataToDisplay:(NSString *)dbPath :(NSString*)filter {
}
[LettureProve getDataToDisplay: [self getDBPath] :filter];
Upvotes: 0
Views: 88
Reputation: 6342
You should use this
+ (void) getDataToDisplayWithPath:(NSString *)dbPath andFilter:(NSString*)filter {
}
Upvotes: 1
Reputation: 2664
You are missing the name of the second parameter
+ (void) getDataToDisplay:(NSString *)dbPath filter:(NSString*)filter {
}
[LettureProve getDataToDisplay: [self getDBPath] filter:filter];
Upvotes: 2