Én próbálok egy popover jelent meg egy térképet kit hivatkozási pontnál, de nem találja a „len” a kommentár tulajdonságainak megtekintése használni a len eljárás hívás uipopovercontroller. Ha adott egy kommentárt a térképen kit hogyan lehet megtalálni a megfelelő „keret”?
Annak érdekében, hogy paul több információt, itt van a kísérlet: már használják:
- (void)mapView:(MKMapView *)mapView2 annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control{
NSLog(@annotationView...);
MyGizmoClass *myGizmoClass= [MyGizmoClass sharedManager];
int choice = 0;
for (NSMutableDictionary *locationDictionary in [myGizmoClass searchResultsForResortLocation])
{
if([view.annotation.title isEqualToString:[locationDictionary objectForKey:@name]])
{
DetailViewTableStyleController *controller = [[DetailViewTableStyleController alloc] initWithlocationData:[[myGizmoClass searchResultsForResortLocation] objectAtIndex:choice] nibName:@DetailViewTableStyle bundle:[NSBundle mainBundle]];
controller.categoryCode = [locationDictionary objectForKey:@category_code] ;
//create a popover controller
popoverControllerDetail = [[UIPopoverController alloc] initWithContentViewController:controller];
// set contentsize
[popoverControllerDetail setPopoverContentSize:CGSizeMake(320,480)];
//present the popover view non-modal
[popoverControllerDetail presentPopoverFromRect:view.rightCalloutAccessoryView.frame inView:mapView2 permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
[controller release];
break;
}
choice = choice + 1;
}
}
És ... kapok egy popover a bal felső szélén a mapview.
Tud valaki mondani, hogy miért? Én próbálok, hogy megjelenjen a következő pin / annotationview.













