Renamed parameter to avoid compilation issues

This commit is contained in:
Alex Zolotarev 2013-08-14 21:12:16 +03:00
parent 5414a1bb12
commit 33cee0cf13
2 changed files with 5 additions and 5 deletions

View file

@ -42,7 +42,7 @@
// [optional] passed back to the app when pin is clicked, OR, if it's a valid url,
// it will be opened from MapsWithMe after selecting "More Details..." for the pin
@property (nonatomic, retain) NSString * idOrUrl;
- (id) initWithLat:(double)lat lon:(double)lon title:(NSString *)title and:(NSString *)idOrUrl;
- (id) initWithLat:(double)lat lon:(double)lon title:(NSString *)title andId:(NSString *)idOrUrl;
@end
@ -59,7 +59,7 @@
+ (BOOL) showMap;
// Displays given point on a map, title and id are optional
// If id contains valid url, it will be opened from MapsWithMe after selecting "More Details..." for the pin
+ (BOOL) showLat:(double)lat lon:(double)lon title:(NSString *)title and:(NSString *)idOrUrl;
+ (BOOL) showLat:(double)lat lon:(double)lon title:(NSString *)title andId:(NSString *)idOrUrl;
// The same as above but using pin wrapper
+ (BOOL) showPin:(MWMPin *)pin;
// Displays any number of pins

View file

@ -44,7 +44,7 @@ static NSString * MWMUrlScheme = @"mapswithme://";
return self;
}
- (id) initWithLat:(double)lat lon:(double)lon title:(NSString *)title and:(NSString *)idOrUrl
- (id) initWithLat:(double)lat lon:(double)lon title:(NSString *)title andId:(NSString *)idOrUrl
{
if ((self = [super init]))
{
@ -132,9 +132,9 @@ static NSString * MWMUrlScheme = @"mapswithme://";
return [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[MWMUrlScheme stringByAppendingFormat:@"map?v=%d", MAPSWITHME_API_VERSION]]];
}
+ (BOOL) showLat:(double)lat lon:(double)lon title:(NSString *)title and:(NSString *)idOrUrl
+ (BOOL) showLat:(double)lat lon:(double)lon title:(NSString *)title andId:(NSString *)idOrUrl
{
MWMPin * pin = [[[MWMPin alloc] initWithLat:lat lon:lon title:title and:idOrUrl] autorelease];
MWMPin * pin = [[[MWMPin alloc] initWithLat:lat lon:lon title:title andId:idOrUrl] autorelease];
return [MWMApi showPin:pin];
}