Here you go (untested):
- (int)getRank:(NSString *passedString) {
if([passedString isEqualToString:@"randomcard"]){
return YES;
} else {
return NO;
}
}
I suggest you learn Objective-C first. This is a very basic question.
4
solved Objective-C (iOS) passing and returning NSString methods? [closed]