Skip to content

Commit

Permalink
shrink code
Browse files Browse the repository at this point in the history
  • Loading branch information
xxd committed Apr 19, 2012
1 parent 2e31c82 commit 7f9af82
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
7 changes: 4 additions & 3 deletions Dandan/NewItemViewController.m
Expand Up @@ -324,10 +324,11 @@ - (void)reverseGeocoder:(MJReverseGeocoder *)geocoder didFindAddress:(AddressCom
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];

subTitle = [NSString stringWithFormat:@"%@ %@, %@, %@",
addressComponents.streetNumber,
addressComponents.route,
addressComponents.city,
addressComponents.stateCode];
addressComponents.route,
addressComponents.streetNumber,
addressComponents.stateCode];
NSLog(@"%@",subTitle);
}


Expand Down
2 changes: 0 additions & 2 deletions Dandan/ParkPlaceMark.h
Expand Up @@ -11,7 +11,5 @@

-(id)initWithTitle:(NSString *)ttl andCoordinate:(CLLocationCoordinate2D)c2d;
-(id)initWithCoordinate:(CLLocationCoordinate2D) coordinate;
- (NSString *)subtitle:(NSString *)subTitle;
- (NSString *)title:(NSString *)titles;

@end
7 changes: 0 additions & 7 deletions Dandan/ParkPlaceMark.m
Expand Up @@ -10,13 +10,6 @@ - (id)initWithTitle:(NSString *)ttl andCoordinate:(CLLocationCoordinate2D)c2d {
return self;
}

- (NSString *)subtitle:(NSString *)subTitle{
return @"可以增加用来回忆的详细位置信息";
}
- (NSString *)title:(NSString *)titles{
return @"您所选择的单单item位置";
}

-(id)initWithCoordinate:(CLLocationCoordinate2D) c{
coordinate=c;
NSLog(@"%f,%f",c.latitude,c.longitude);
Expand Down

0 comments on commit 7f9af82

Please sign in to comment.