2016-07-11 21 views
0

我正在实现具有经度和纬度的地图视图特定位置,如下所示。为什么我必须缩小以查看iOS中mapview的注释,目标c

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]; 

注:该作品在simulator.when我与设备测试很好,我不得不缩小在地图上看到(引脚显示与方桌,不显示地图)

回答

0

它将发生在IOS8.3和更高版本上的SIM和设备(可能是它的一个bug)。系统地图应用程序正在运行(它也显示空网格)一分钟,直到它下载地图。在那里MKMapView开始渲染正常。

+0

我保持足够的时间,但没有显示地图。任何解决方案? –

+0

我的工作时间也面临同样的问题,我改变了地图类型作为标准,然后它显示在iphone 5家庭ony –

+0

感谢您的快速答复。如果你了解任何解决方案,请足够的亲切,使我知道,他也会帮助别人。 –

相关问题