2

自从升级到 iOS 7 和 xCode 5 后,当用户选择一个项目时,我的弹出框并没有消失。他们必须在弹出框外面点击才能让它消失。

在下面的 UITableViewController 中找到了PatientsViewController,我正在从我的根视图控制器中创建这样的支持者......

    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]]; 
}

发生了什么变化?

谢谢,

约翰

4

0 回答 0