diff --git a/examples/objective-c/hello_world/ViewController.m b/examples/objective-c/hello_world/ViewController.m index 69e16bc5d4..d01dd8a750 100644 --- a/examples/objective-c/hello_world/ViewController.m +++ b/examples/objective-c/hello_world/ViewController.m @@ -90,9 +90,9 @@ - (void)performRequest { NSString *message = [NSString stringWithFormat:@"received headers with status %i", statusCode]; NSMutableString *headerMessage = [NSMutableString new]; - for (NSString *name in headers.caseSensitiveHeaders()) { + for (NSString *name in headers.caseSensitiveHeaders) { if ([self.filteredHeaders containsObject:name]) { - NSArray *values = headers.caseSensitiveHeaders()[name]; + NSArray *values = headers.caseSensitiveHeaders[name]; NSString *joined = [values componentsJoinedByString:@", "]; NSString *pair = [NSString stringWithFormat:@"%@: %@\n", name, joined]; [headerMessage appendString:pair];