0

Googleマップで自分の場所を表示するアプリを1つ作成したいのですが、このアプリを実行すると、自分の場所が表示されず、サンフランシスコの別の場所が表示されません!!! 私の街の私の場所を見せてくれないのはなぜですか??? これは私のコードです:

ViewController.m

#import "ViewController.h"
#import <MapKit/MapKit.h>

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    MKMapView *mapView = [[MKMapView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)];
    mapView.mapType = MKMapTypeStandard;
    mapView.zoomEnabled = YES;
    mapView.scrollEnabled = YES;
    mapView.showsUserLocation = YES;

    [self.view addSubview:mapView];
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
4

0 に答える 0