iphone - MKMapView not showing on device -


I have a little problem and I do not know why.

Woking my map view is okay in the simulator, but on the real device, I only see the gray area and the pin on the "Google" logo. It seems that you can not images be loaded, so that when you look closer and wait for you to draw near to see the intersection.

Here is my code, I can help #import "Maps.h" #import "RootViewController.h" @implementation AddressAnnotation coordination @synthesize ; - (NSString *) subtitles {return @ "327 Anzac Parade, Wodonga, Victoria, Australia"; } - (NSString *) title {@ @ Blazing Stump @; } - (id) initWithCoordinate: (CLLocationCoordinate2D) c {coordinate = c; NSLog (@ "% f,% f", c.latitude, clongitude); Self return; } @end @implementation Maps - (CLLocationCoordinate2D) addressLocation {NSString * locationString = [NSString stringWithContentsOfURL: [NSURL URLWithString: @ "http://maps.google.com/maps/geo?q=327%20Anzac%20Parade,%20Wodonga ,% 20 Victoria,% 20 Australia and Output = CSV & KEY = ABQAAAGS 2Z FxIUBFPLPGMGbTXE 17-T8X3x3AGRA9NUFATA 8MRRMYLMMPTOSGGJXAATAJ 7T-RV "] Encoding: NSUFF 8 string encoding error: zero] ; NSArray * listItems = [locationString Components EspressedBestString: @ ","]; Double latitude = -36.139226; Double longitude = 146.911454; If ([list is calculated]> gt; = 4 & amp; amp; [[listItems objectAtIndex: 0] isEqualToString: @ "200"]) {latitude = [[listItems objectAtIndex: 2] double value]; Longitude = [[List item autandex: 3] double value]; } Other {// some error} CLLocationCoordinate2D location; place. Latitude = latitude; place. Lame = longitude; Return location; } - (Mkeaneteshn weave *) Map View (Mkemapdrishy *) Map View View Liavigyapan: (ID & lt; Mk Anneteshn & gt;) annotation {MK pin ANNOTATION weave * Anaiviuuuu = [[MK Pinannoteshn weave Elok] Int with annotations: annotations Reuse identifier: @ "currentLaic"]; AnnView.pinColor = MKPinAnnotationColorGreen; AnnView.animatesDrop = TRUE; AnnView.canShowCallout = Yes; AnnView.calloutOffset = CGExMake (-5, 5); Return annually; } - (zero) viewDidoad {MKCoordinateRegion area; MKCoordinateSpan period; Span.latitudeDelta = 0.2; Span.longitudeDelta = 0.2; CLLocationCoordinate2D location = [auto address space]; Region.span = period; Area.center = location; If (addAnnotation = zero!) {[MapView removeAnnotation: addAnnotation]; [Add annotation release]; AddNnotation = Zero; } AddAnnotation = [[Patronation Alloc] initWithCoordinate: location]; [See map add symbol: connective]; [MapView Set Region: Animated Area: TRUE]; [MapView regionThatFits: Area]; // [select mapView attribute: animated mLodgeAnnotation: Yes]; [Super viewedload]; } - (zero) Delok [[Super Delooc]]; [See Controller Release]; }

Did you ensure that the map digit has been determined? Make sure that you add links to the header and mapkit.delagte = self on the view;

Donation

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -