Note that there are some explanatory texts on larger screens.

plurals
  1. POUIPopoverController not dismissing in xCode 5/ios7
    text
    copied!<p>Since upgrading to iOS 7 and xCode 5 my popovers are not dismissing when the user selects an item. They have to tap outside of the popover to get it to go away.</p> <p>In the following the UITableViewController is foundPatientsViewController and I am creating the propover like this from my root view controller...</p> <pre><code> 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]; </code></pre> <p>In foundPatientsViewController I have...</p> <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [myPO dismissPopoverAnimated:YES]; [self.delegate patienSelectedForDisplay:self withPatientNumber:[patientNumbers objectAtIndex:indexPath.row] patientName:[patients objectAtIndex:indexPath.row]]; } </code></pre> <p>What has changed?</p> <p>Thanks,</p> <p>John</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload