【问题标题】:MKMapView showing blank screen in iOS 8MKMapView 在 iOS 8 中显示空白屏幕
【发布时间】:2014-11-20 04:11:18
【问题描述】:

我在 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 上崩溃。您是否向 Apple 提交了错误报告?
  • 我也面临同样的问题.. 伙计们你有什么解决办法吗?
  • 我在 Yosemite 上使用 MapKit 收到该错误消息。我觉得这并不重要。

标签: ios xcode mkmapview ios8 xcode6


【解决方案1】:

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

【讨论】:

    猜你喜欢
    • 2014-07-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-22
    相关资源
    最近更新 更多