Permalink
Browse files

Create a new method called setCoordinate

  • Loading branch information...
1 parent 8dde598 commit 93c851707377da8c48608209d72b59d01aeccd92 @rafaelks rafaelks committed Mar 14, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 iphone/Classes/TiMapAnnotationProxy.m
@@ -117,6 +117,12 @@ -(CLLocationCoordinate2D)coordinate
return result;
}
+-(void)setCoordinate:(CLLocationCoordinate2D)coordinate
+{
+ [self setValue:[NSNumber numberWithDouble:coordinate.latitude] forUndefinedKey:@"latitude"];
+ [self setValue:[NSNumber numberWithDouble:coordinate.longitude] forUndefinedKey:@"longitude"];
+}
+
// Title and subtitle for use by selection UI.
- (NSString *)title
{

0 comments on commit 93c8517

Please sign in to comment.