Re: iOS - Help with nasty memory leak

2010-11-27 Thread Philip Vallone
Thank you, My viewForAnnotation was all wrong. I was trying code from this tutorial: http://trentkocurek.wordpress.com/2010/07/21/ios4-map-kit-draggable-annotation-views/ So, I went back and redid my code, which fixed the memory leak and alleviated the need for a custom Annotation View. - (MK

Re: iOS - Help with nasty memory leak

2010-11-27 Thread Joar Wingfors
On 27 nov 2010, at 06.33, Philip Vallone wrote: > if ((self = [[MKPinAnnotationView alloc] > initWithAnnotation:annotation reuseIdentifier:reuseIdentifier])) { > [self > performSelector:NSSelectorFromString(@"setDraggable:") withObject:[NSNumber > numberWith

iOS - Help with nasty memory leak

2010-11-27 Thread Philip Vallone
Hi, I have implemented a dragable annotation in my app. I am getting a 100% memory leak that has me puzzled. I was hoping that someone can provide some guidance. The leak is at: MKAnnotationView *draggablePinView = [[[AnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"PinIde