Addign Map to a WebView in iPhone

Discussion created by vadimg on Aug 12, 2012
Latest reply on Aug 16, 2012 by njarecha-esristaff
I have function that adds different instance to a WebView.
How can i add a map view to already existing WebView?

I want to use my function for setting the map on a WebView.

If someone can write some code to shoe how to implement and set it it woudld be great.

I tried:

MapViewDemoViewController *test = [[MapViewDemoViewController alloc] initWithFrame:CGRectMake(20,95, 285, 285)];
[[self.webView superview] addSubview:test];