0

I'm implementing a map view specific location with longitude and latitude.like below.

 self.hotelmapView.showsUserLocation = YES;
    self.hotelmapView.showsBuildings = YES;


    locationManager = [CLLocationManager new];
    if ([locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) {
        [locationManager requestWhenInUseAuthorization];
    }

    //[locationManager startUpdatingLocation]; --> no need to add this for real devices.else should add this.

    MKPointAnnotation *annotationPint = [MKPointAnnotation new];
    annotationPint.title = @"anuradh hotel name";
    annotationPint.coordinate = CLLocationCoordinate2DMake(51.585300, -0.1257480);


    notationarray = [NSMutableArray new];
    [notationarray addObject:annotationPint];

NOTE : This works fine in simulator.when I test with the device, I have to zoom out to see the map(pin showing with square table,not showing the map)

Anbu.Karthik
  • 82,064
  • 23
  • 174
  • 143
caldera.sac
  • 4,918
  • 7
  • 37
  • 69

1 Answers1

0

It will occur on IOS8.3 and later version both sim and device (may be its a bug ). the system Maps App running (it shows empty grid as well) for a minute till it downloaded maps. there after MKMapView started rendering as normal .

Anbu.Karthik
  • 82,064
  • 23
  • 174
  • 143