Alessandro Mattiuzzi
Alessandro Mattiuzzi

Reputation: 2467

Call Method With multiple arguments

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

Answers (2)

Nirav Gadhiya
Nirav Gadhiya

Reputation: 6342

You should use this

+ (void) getDataToDisplayWithPath:(NSString *)dbPath andFilter:(NSString*)filter {
}

Upvotes: 1

Marcin Kuptel
Marcin Kuptel

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

Related Questions