2014-09-25 25 views
7

ich ein Problem habe mit einer MKMapView in iOS Anzeige 8.MKMapView zeigt leeren Bildschirm in iOS 8

Es in iOS fein gearbeitet 7 und es funktioniert jetzt in Ordnung, aber nur auf Simulator.

Auf dem Gerät werden nur Anmerkungen, aber keine Karte angezeigt.

Es sieht wie folgt aus: http://imgur.com/rBVWTeD

Der Fehler, ich erhalte:

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 

Mein Code:

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

Vielen Dank im Voraus!

+0

Ich erfahre genau das gleiche. War gut in ios7 und ist immer noch gut im Simulator aber stürzt auf iOS8. Haben Sie Apple einen Fehlerbericht gesendet? – nanako

+0

ich auch gleichgesicht .. Jungs haben Sie eine Lösung? –

+0

Ich bekomme diese Fehlermeldung mit MapKit auf Yosemite. Ich habe das Gefühl, dass es nicht so wichtig ist. –

Antwort

2

Verknüpfen Sie CoreGraphics-Framework mit Ihrem Ziel. Sollte das beheben.

Verwandte Themen