I’m trying to do the Geocode challenge and am running into a dumb problem which I can’t resolve.
I KNOW this is my newness to Objective-C, I’m not understanding some syntax nuance.
Here is the problem code:
NSString *subTitleString = [[NSString alloc] initWithFormat:@"%@, %@", [ptrPMK locality], [ptrPMK countryCode]];
MapPoint *mp = [[MapPoint alloc] initWithCoordinate:[ptrLocation coordinate]
When I build this, I get a failure “Expected ‘:’ before ‘]’ token”, at the line “subtitle:subTitleString];” Subtitle is defined as an (NSString *) in the MapPoint declaration.