title: New PList Retrieval Code Prevents MKMapView Delegate Method From Being Called (iOS)
body: <p>I added a plist database to store information for annotations in a MKMapView. Once I implemented the code to grab the information, my delegate methods are no longer being called.</p>
  
  <p>The code I added was:</p>
  
  <pre><code>- (void)viewDidLoad
  {
      NSMutableArray *annotations = [[NSMutableArray alloc]init];
      NSString *path = [[NSBundle mainBundle] pathForResource:@"MillersStores" ofType:@"plist"];
      NSDictionary *dict = [NSDictionary dictionaryWithContentsOfFile:path];
      NSArray *anns = [dict objectForKey:@"Root"];
      for(int i = 0; i &lt; [anns count]; i++) {
          float realLatitude = [[[anns objectAtIndex:i] objectForKey:@"Latitude"] floatValue];
          float realLongitude = [[[anns objectAtIndex:i] objectForKey:@"Longitude"] floatValue];
  
          MillersLocations *myAnnotation = [[MillersLocations alloc] init];
          CLLocationCoordinate2D theCoordinate;
          theCoordinate.latitude = realLatitude;
          theCoordinate.longitude = realLongitude;
          myAnnotation.coordinate = theCoordinate;
          myAnnotation.title = [[anns objectAtIndex:i] objectForKey:@"Title"];
          myAnnotation.subtitle = [[anns objectAtIndex:i] objectForKey:@"Address"];
          [mapView addAnnotation:myAnnotation];
          [annotations addObject:myAnnotation];
          [myAnnotation release];
      }
  }
  </code></pre>
  
  <p>And this is one of delegate method that's no longer being called is:</p>
  
  <pre><code>- (MKAnnotationView *) mapView:(MKMapView *) mapView viewForAnnotation:(id ) annotation {
      if ([annotation isKindOfClass:[MKUserLocation class]])
          return nil;
  
      MKPinAnnotationView *pinView = [[[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:nil] autorelease];
      pinView.pinColor = MKPinAnnotationColorRed;
      pinView.animatesDrop = YES;
      pinView.canShowCallout = YES;
  
      UIImageView *leftIconView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"MillersAnnotation.png"]];
      pinView.leftCalloutAccessoryView = leftIconView;
  
      UIButton *rightButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
      pinView.rightCalloutAccessoryView = rightButton;
      return pinView;
  }
  </code></pre>
  
  <p>I have another delegate method in there that also zooms into the User's Location that's not being called either, as well as the calloutAccessoryControlTapped method that's no longer being called.</p>
  
  <p>I know it has something to do with the new code, but I'm confused as to how to even debug this because it's not giving me errors and I can't log it because the entire methods aren't even being called. When I get rid of the new code, the old code works fine...What is it in the new code that negates the old code?</p>