From c7bd962cb7252f756b7d440d60e9dd19b26cab73 Mon Sep 17 00:00:00 2001 From: gogosapiens Date: Mon, 16 Dec 2013 17:06:58 +0200 Subject: [PATCH 1/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 17c0b6c..5f4dd8f 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ Please refer to the [sample application][linkSample] for a demo. ### Prerequisites -* Your application must target at least *iOS version 4.3* +* Your application must target at least *iOS version 5.0* * For two way communication, you should add unique [URL scheme][linkAppleCustomUrlSchemes] to your app (see below) ### Integration From 49ada5a30c680848b7450e79bc4a62761035b212 Mon Sep 17 00:00:00 2001 From: gogosapiens Date: Mon, 16 Dec 2013 17:25:43 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 5f4dd8f..b70c0ee 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ If you want to get results of API calls, please add unique URL scheme to your ap Simply opens MapsWithMe app: - + (BOOL) showMap; + + (BOOL)showMap; Example: @@ -57,11 +57,11 @@ Example: Displays given point on a map: - + (BOOL) showLat:(double)lat lon:(double)lon title:(NSString *)title and:(NSString *)idOrUrl; + + (BOOL)showLat:(double)lat lon:(double)lon title:(NSString *)title and:(NSString *)idOrUrl; The same as above but using pin wrapper: - + (BOOL) showPin:(MWMPin *)pin; + + (BOOL)showPin:(MWMPin *)pin; Pin wrapper is a simple helper to wrap pins displayed on the map: @@ -70,7 +70,7 @@ Pin wrapper is a simple helper to wrap pins displayed on the map: @property (nonatomic, assign) double lon; @property (nonatomic, retain) NSString * title; @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 and:(NSString *)idOrUrl; @end Example: @@ -86,7 +86,7 @@ Example: #### Show any number of pins on the map - + (BOOL) showPins:(NSArray *)pins; + + (BOOL)showPins:(NSArray *)pins; #### Receiving results of API calls @@ -95,11 +95,11 @@ Here are helper methods to obtain API call results: Returns YES if url is received from MapsWithMe and can be parsed: - + (BOOL) isMapsWithMeUrl:(NSURL *)url; + + (BOOL)isMapsWithMeUrl:(NSURL *)url; Returns nil if user didn't select any pin and simply pressed *Back* button: - + (MWMPin *) pinFromUrl:(NSURL *)url; + + (MWMPin *)pinFromUrl:(NSURL *)url; Example: @@ -123,14 +123,14 @@ Note, that you can simply check that *sourceApplication* contains *com.mapswithm Returns NO if MapsWithMe is not installed or outdated version doesn't support API calls: - + (BOOL) isApiSupported; + + (BOOL)isApiSupported; With this method you can check that user needs to install MapsWithMe and display your custom UI. Alternatively, you can do nothing and use built-in dialog which will offer users to install MapsWithMe. ### Set value if you want to open pin URL on balloon click (Available in 2.4.5) - + (void) setOpenUrlOnBalloonClick:(BOOL)value; + + (void)setOpenUrlOnBalloonClick:(BOOL)value; ### [Sample Code][linkSample]