Which of the following code samples will declare a variable inside a block in Objective-C?
Correct Answer: [participants enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) { Person *participant = (Person*)obj; Person *aPerson = nil; if ([participant.gender isEqualToString:@"M"]) { aPerson = participant; *stop = YES; } }]; return aPerson;
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More IOS Technical Test MCQ Questions