开发者

How to integrate a map in iPhone app

开发者 https://www.devze.com 2023-02-25 07:40 出处:网络
I followed the this tutorial to integrate map in my iPhone app. Here is my projectnamecontroller.m file

I followed the this tutorial to integrate map in my iPhone app.

Here is my projectnamecontroller.m file

// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.

- (void)viewDidLoad {
     NSString *url = @"http://maps.google.com/maps?q=London";
     NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:url]];
  开发者_Go百科  [webView loadRequest:request];
    [super viewDidLoad];
}

At the end the map did not show up the iPhone simulator screen. Any idea?


If you want google map integration pls refer this previous SO question

Integrating google map in iphone app

Or you can go through MKMapView by following this tutorial

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号