how to add UITextField in MKAnnotationView Title
问题 I try like this, but it isn't work. How can i do this ? MKAnnotationView *pointTest = [[MKAnnotationView alloc] init]; pointTest.annotation = point; pointTest.draggable= YES; UITextField *pointText = [[UITextField alloc] initWithFrame:CGRectMake(location.latitude, location.longitude, 100, 20)]; pointText.backgroundColor = [UIColor blackColor]; pointTest.rightCalloutAccessoryView = pointText; pointTest.canShowCallout = YES; [self.userMap addAnnotation:pointTest]; 回答1: First of all, you are