problem about mkannotationview-Collection of common programming errors
vikingosegundo
objective-c cocoa-touch mapkit mkannotationview
I was wondering if anyone knows of any subclasses for the MKAnnotationView class. On apples documentation they say one example is the MKPinAnnotationView so I was wondering if there were other pre-created subclasses like the one used to track the devices current location. If anyone has tips for creating my own subclass of the MKAnnotationView class that be great as well.Thanks, bubster
jowie
ios mapkit mkannotationview userlocation callout
I’ve created a custom annotation view by subclassing MKAnnotationView. This class also creates a custom callout (info pop-up ‘bubble’) view which is skinned to match my app.I also want to be able to reskin the callout bubble for the user location dot, but it seems as though the only control I have over that view is whether it is overridden completely or not, by using the following inside the mapView:viewForAnnotation: method:if(annotation == self.mapView.userLocation){return nil;}But want I real
madth3
ios facebook-graph-api mkmapview grand-central-dispatch mkannotationview
I am working on an app in which I am getting Facebook places and displaying them on MKMapView as annotations using following method.-(void) connectionDidFinishLoading: (NSURLConnection *) connection { latitudeArray = [[NSMutableArray alloc]init]; longitudeArray = [[NSMutableArray alloc]init]; nameArray = [[NSMutableArray alloc]init]; placeImgArray = [[NSMutableArray alloc]init];[UIApplication sharedApplication].networkActivityIndicatorVisible = NO;NSDictionary *placesDict = [NSJSONSerialization
user1250152
iphone ios mkannotationview
I can’t replace a disclosureDetailButton with a UIActivityIndicatorView in the MKAnnotationView.My code is here-(void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)aView calloutAccessoryControlTapped:(UIControl *)control {UIActivityIndicatorView * spinner = [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(0, 0, 31, 31)];[spinner startAnimating];[aView addSubview:spinner]; [self performSegueWithIdentifier:@”photoMap” sender:self]; }here is the code that prepare for a se
Blasco73
ios android-mapview mkannotationview
I have this problem:In my App I use this very simply code:- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control {self.mapPopup.hidden=false;}This code on the iOS 6 version of my App works great…. on the same app for iOS7 when I tap 2 times, the App crash.The error that came out is “EXC_BAD_ACCESS”.I’ve also noted that in ios6 don’t makes any distinction from left touch or right touch (on the annotation)… in ios7 yes!I
TheSlope
iphone objective-c sdk mapkit mkannotationview
I’m following this tutorial (http://icodeblog.com/2009/12/21/introduction-to-mapkit-in-iphone-os-3-0/) on adding mapkit and annotations to an application. However, i’m seriously struggling with the User Location. I’m new to xcode so not quite sure what to do next. I have tried Tony’s option:step one: add the CoreLocation framework to the project.Step two: add this function to the iCodeMapViewController.m:- (void)setCurrentLocation:(CLLocation *)location { MKCoordinateRegion region = {{0.0f, 0.0f
paradigmatic
ios mkmapview mkannotationview
I am new in iOS development,I need a MKMapView with custom pin annotation and custom callout bubble,I already achieved this, I need another situation when button clicked the mapview get refreshed with new points. For this purpose I tried to remove all annotation and add new annotation but this is not working it change my custom pin Images so I solved this problem in following manner,First I removed old map view Using removeFromSuperView and added new MKMapView programmatically using addsubview a
Jack Marchetti
garbage-collection monotouch mkmapview mkannotationview
I’m calling a service and returning a bunch of latitudes and longitudes which I’m then placing on a map using MapKit.using MKAnnotationView I’m adding a RightCallOutButton to each annotation.So I had to create a new MapDelegate. Code below. If I click on the button I create the app crashes and I get an error from MonoTouch saying the selector is accings omething that has already been GC’d (garbage collected).So my question would be, where should I set the RightCalloutAccessoryView and where sh
Rahul Patel
ios iphone mkmapview mapkit mkannotationview
My requirement is, track the user location and draw line with multiple colors in the map view. I am using Craig’s Code from this link. I am adding annotations on his route two times:When ever user’s location changed (Here I am adding CSMapAnnotationTypeEnd). Remove the old annotation and then I am adding new one. Whenever user double taps the screen(Here I am adding CSMapAnnotationTypeImage).And map view is blinking, whenever new location found. I don’t need this blinking. But my app is crashing
user2996724
ios mkannotationview
I have an app for displaying map and custom annotation. My application crashes when the user touches on the annotation. It happens in iOS 7 only. It’s working fine with iOS 6 and iOS 5. Following is the crash report which is displayed in the console:ERROR: Trying to select an annotation which has not been added -[__NSSetM coordinate]: unrecognized selector sent to instance 0x18c9d580 *** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[__NSSetM coordinate]: un
Adam Storr
iphone mapkit mkannotationview
I’ve successfully added a custom UILabel to an annotation callout, but am failing at making the UILabel display the annotation.title. The app builds fine, but crashes once I tap an annotation. It crashes with SIGABRT at the first line in the code below.Note: I’m using the code from Asynchrony Solutions.My code is below, thanks!- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view {if (self.calloutAnnotation == nil) {self.calloutAnnotation = [[CalloutMapAnnotation
tuzzolotron
mapkit mkmapview mkannotation mkannotationview
I’m trying to remove annotaenter code heretion some a MKMapView but am crashing on this line:[self.mapView removeAnnotation:p];p is an object that implements the MKAnnotation protocol and already has an annotation on that map.This is the message I’m getting when I crash:objc[46534]: FREED(id): message release sent to freed object=0x4319640 Program received signal: “EXC_BAD_INSTRUCTION”. (gdb) The backtrace looks like so:(gdb) bt #0 0x951424b4 in _objc_error () #1 0x951424ea in __objc_error ()
Bradley Davis
iphone mapkit mkannotationview sigabrt accessoryview
Just to preface, I am new to iOS development. I have looked around for awhile to try and find an answer, whether on here or through Google.My application loads into a mapview with annotations. If a user taps on one of the annotations a callout view with an accessory button displays. The problem I am having is in the method that is called when the accessory button is tapped. I am wanting to display a detailview for the specific annotation, but when I tap the accessory button the app crashes w
jianhua
ios crash mapkit mkannotationview
Using MapKit based on iOS6.1, app will random crash (very low occurrence rate) when I try to remove all MKAnnotations then pop out map view controller. From the crash log it seems be an observer issue, anyone who has experienced the similar issue please give me some insight, any idea or discussion will be appreciated. Thanks in advance. PS:UIMapView is a singleton in my app, only create once. 2013-08-13 15:11:59.025 CHSP[9129:c07] CRASH: Cannot remove an observer <MKAnnotationContainerView 0x
matzino
ios6 ios7 mkmapview autolayout mkannotationview
Hej Folks,my apps crashes on a MKMapView under iOS 6 if I use auto layout for the callout view. With iOS 7 this works fine.- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view { CustomMapAnnotation *annotation = (CustomMapAnnotation *)view.annotation;if([annotation isKindOfClass:[CustomMapAnnotation class]]) {CustomMapCalloutView *calloutView = [CustomMapCalloutView new];calloutView.translatesAutoresizingMaskIntoConstraints = NO;calloutView.titleLabel.text = anno
j0k
objective-c mkmapview mkannotationview
Maybe this question is already asked, but i couldnt find it. The error i get is really giving me a headache!Terminating app due to uncaught exception ‘NSUnknownKeyException’, reason: ‘[<MapViewController 0x8095670> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key mapView.’I think this is when the annotation is setted and the event is called. My code:- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation {
mlewis54
iphone reverse-geocoding mkannotationview
When my view goes away I get the following message:An instance 0x1c11e0 of class MKAnnotationView was deallocated while key value observers were still registered with it. Observation info was leaked, and may even become mistakenly attached to some other object. Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger. Here’s the current observation info:(Context: 0x0, Property: 0x1e98d0> )The code that defines and starts the reverse geocoding is:geo=[[MKReverseGeocoder alloc] initWi
mservidio
objective-c ios6 uiview mkmapview mkannotationview
How to I properly set a radius on a custom MKAnnotationView and allow callouts? This throws an exception:From my custom MKAnnotationView class:- (id)initWithFrame:(CGRect)frame {self = [super initWithFrame:frame];if (self){self.frame = CGRectMake(0, 0, 30, 30);self.opaque = NO;self.multipleTouchEnabled = NO;self.backgroundColor = [UIColor whiteColor];self.layer.cornerRadius = 5;self.layer.masksToBounds = YES;self.layer.borderColor = [UIColor blueColor].CGColor;self.layer.borderWidth = 1.0f;self.
Rich
iphone annotations mapkit mkannotation mkannotationview
I’m trying to implement the mapView:annotationView:calloutAccessoryControlTapped: method in my iPhone app. The method is getting called, but when I try to use the view passed to itAnnotation* temp = (Annotation *)view.annotation;the app crashes with the error.2011-03-29 12:51:54.453 Flora[3316:207] * Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ‘-[UITouchesEvent annotation]: unrecognized selector sent to instance 0x6d13410’In the debugger, it seems as if the v
MathieuF
iphone ios mapkit mkannotationview
.framework/MapKit, file was built for i386 which is not the architecture being linked (armv6)Undefined symbols:”_OBJC_CLASS_$_MKAnnotationView”, referenced from:objc-class-ref-to-MKAnnotationView in MapViewController.old: symbol(s) not foundcollect2: ld returned 1 exit statusI am getting this error when building on my device even though I added the mapkit and corelocation frameworks. Does anyone know how i can solve this problem?
rokimoki
ios google-maps mkmapview mkannotation mkannotationview
Hi everyone I hope you can help me:- (IBAction) addPoints: (id) sender { NSArray *latitudePoints; NSArray *longitudePoints; BOOL flag = NO; @try { switch (lugar) {case 0:break;case 1:latitudePoints = @[@27.781361, @27.777894, @27.766683, @27.757066, @27.745613, @27.737327, @27.728247, @27.720827, @27.720866, @27.719083, @27.722266, @27.721097, @27.739263, @27.758177, @27.780688];longitudePoints = @[@-15.714188, @-15.720175, @-15.726072, @-15.740874, @-15.746066, @-15.759544, @-15.763944, @-15.77
Web site is in building