मैं एक पॉपओवर मानचित्र किट एनोटेशन बिंदु पर प्रकट करने के लिए प्राप्त करने के लिए कोशिश कर रहा हूँ लेकिन uipopovercontroller बुलाने की रेक्ट विधि का उपयोग करने के लिए एक रेक्ट एनोटेशन दृश्य गुण में नहीं मिल सकता है। अगर नक्शा किट पर टिप्पणी के कैसे एक मिल रहा है उचित फ्रेम दिया?
पॉल अधिक जानकारी देने के लिए, यहाँ मेरी प्रयास है: मैं पहले से ही इस्तेमाल किया है:
- (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;
}
}
और ... मैं MapView के किनारे पर ऊपर बाईं ओर एक पॉपओवर मिलता है।
क्या कोई मुझे बता सकता है क्यों? मैं यह पिन / annotationview के पास प्रकट करने के लिए प्राप्त करने की कोशिश कर रहा हूँ।













