How to access to an annotation attribute inside method calloutAccessoryControlTapped
I am trying to open a detail viewController when a user taps on the callout from a map annotation. I have created a custom annotation subclass called myAnnotation, and there I have included a property called idEmpresa. At a custom method I am declaring the annotation as follows: double latitud = [[[categorias objectAtIndex:i] objectForKey:@"latitud"] doubleValue]; double longitud = [[[categorias objectAtIndex:i] objectForKey:@"longitud"]doubleValue]; CLLocationCoordinate2D lugar; lugar.latitude = latitud; lugar.longitude = longitud; NSString *nombre = [[categorias objectAtIndex:i] objectForKey