I typed in text from a book and
I get this error: Passing argument of 1 of “initWithObjects:forKeys:count:” from incompatible pointer type
NSDictionary *dict = [[NSDictionary alloc] initWithObjects: @"hello", @"there", @"persn"
forKeys: @"aa", @"bb", @"cc"
count: 3 ];
NSLog(@"%@", [dict objectForKey: @"bb"]);
In Objective-C, methods can’t use var-args like that, they must always come at the end of the invocation.
In fact, the parameters to your message invocation are actually pointers to buffers of objects and keys.
Try this: