Skip to content
This repository was archived by the owner on Apr 22, 2018. It is now read-only.

Commit 19ed712

Browse files
author
Ronald Klip
committed
Enabled javascript callback.
1 parent 2446b5a commit 19ed712

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ios/MapKit.m

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ - (void)createViewWithOptions:(NSDictionary *)options {
4444
if(atBottom) {
4545
y += self.webView.bounds.size.height - height;
4646
}
47+
48+
if ([options objectForKey:@"buttonCallback"]) {
49+
self.buttonCallback=[[options objectForKey:@"buttonCallback"] description];
50+
}
4751

4852
self.childView = [[UIView alloc] initWithFrame:CGRectMake(x,y,width,height)];
4953
self.mapView = [[MKMapView alloc] initWithFrame:CGRectMake(self.childView.bounds.origin.x, self.childView.bounds.origin.x, self.childView.bounds.size.width, self.childView.bounds.size.height)];

0 commit comments

Comments
 (0)