Permalink
Browse files

fix crashes for google api changed.

  • Loading branch information...
1 parent 1d89c71 commit d8929033c32e6662f92c9406483ee9b0b2dfcacd @kishikawakatsumi committed Mar 10, 2010
Showing with 3 additions and 3 deletions.
  1. +2 −2 Classes/UICGPolyline.m
  2. +1 −1 MapDirections.xcodeproj/project.pbxproj
View
@@ -24,8 +24,8 @@ - (id)initWithDictionaryRepresentation:(NSDictionary *)dictionary {
self = [super init];
if (self != nil) {
dictionaryRepresentation = [dictionary retain];
-
- vertices = [[dictionaryRepresentation objectForKey:@"k"] retain];
+
+ vertices = [[dictionaryRepresentation objectForKey:@"k"] ? [dictionaryRepresentation objectForKey:@"k"] : [dictionaryRepresentation objectForKey:@"g"] retain];
vertexCount = [vertices count];
routePoints = [NSMutableArray arrayWithCapacity:vertexCount];
for (NSDictionary *vertex in vertices) {
@@ -409,7 +409,7 @@
IPHONEOS_DEPLOYMENT_TARGET = 3.0;
PREBINDING = NO;
"PROVISIONING_PROFILE[sdk=iphoneos*]" = "";
- SDKROOT = iphoneos3.1.2;
+ SDKROOT = iphoneos3.1.3;
};
name = Release;
};

0 comments on commit d892903

Please sign in to comment.