iOS 7 および xCode 5 にアップグレードしてから、ユーザーが項目を選択してもポップオーバーが消えません。ポップオーバーを消すには、ポップオーバーの外側をタップする必要があります。
以下では、UITableViewController が foundPatientsViewController であり、ルート ビュー コントローラーからこのようなプロパオーバーを作成しています...
TodaysPatientsViewController *foundPatientsViewController =[[TodaysPatientsViewController alloc] init];
foundPatientsViewController.patientList = patientList;
foundPatientsViewController.delegate = self;
foundPatientsViewController.patientNameOnly = YES;
UIPopoverController *foundPatientsPopOver = [[UIPopoverController alloc] initWithContentViewController:foundPatientsViewController];
foundPatientsPopOver.delegate = self;
foundPatientsViewController.myPO = foundPatientsPopOver;
[foundPatientsPopOver presentPopoverFromBarButtonItem:findPatientButton permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
[foundPatientsPopOver setPopoverContentSize:CGSizeMake(300, popOverHeight) animated:NO];
[foundPatientsViewController release];
foundPatientsViewController には...
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
[myPO dismissPopoverAnimated:YES];
[self.delegate patienSelectedForDisplay:self withPatientNumber:[patientNumbers objectAtIndex:indexPath.row] patientName:[patients objectAtIndex:indexPath.row]];
}
変化したこと?
ありがとう、
ジョン