MKMapView在iOS 8中显示空白屏幕

7

我在iOS 8上显示MKMapView时遇到了问题。

在iOS 7上它工作得很好,现在只有在模拟器上才能正常工作。

在设备上它只显示注释但没有地图背景。

它看起来像这样:http://imgur.com/rBVWTeD

我收到的错误信息:

2014-09-24 22:07:15.349 xxx[1509:265380] Stylesheet does not include style matching tree, or includes an old version.  Perhaps it was compiled by an old version of the style compiler.
2014-09-24 22:07:15.351 xxx[1509:265380] Please create a radar about this! (Check it's not a dup of rdar://16346611 first though)
2014-09-24 22:07:15.351 xxx[1509:265380] Active tile set: GEOActiveTileSet

我的代码:

    CLLocationCoordinate2D coord = CLLocationCoordinate2DMake(21.779998, 59.447816);

    MKCoordinateSpan span = MKCoordinateSpanMake(0.007, 0.007);
    MKCoordinateRegion region = {coord, span};

    MKPointAnnotation *annotation = [[MKPointAnnotation alloc] init];
    [annotation setCoordinate:coord];
    [annotation setTitle:@"yyy"];

    [self.cell.myMapView setRegion:region];
    [self.cell.myMapView addAnnotation:annotation];
    [self.cell.myMapView setDelegate:self];

提前感谢您!


我也遇到了同样的问题。在iOS7上运行良好,在模拟器上也没有问题,但在iOS8上崩溃了。你向苹果提交了错误报告吗? - nanako
我也遇到了同样的问题.. 你们有解决方案吗? - Toseef Khilji
我在Yosemite上使用MapKit时遇到了这个错误消息。我感觉这并不是很重要。 - Lewis Gordon
1个回答

2
链接CoreGraphics框架到您的目标。应该可以解决这个问题。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接