Using the following statements
[navigationController setModalPresentationStyle:UIModalPresentationPopover];
[self presentViewController:navigationController animated:YES completion:nil];
UIPopoverPresentationController* presentationController = [navigationController popoverPresentationController];
[presentationController setBarButtonItem:sender];
[presentationController setPassthroughViews:nil];
[presentationController setPermittedArrowDirections:UIPopoverArrowDirectionAny];
the code does not disable other bar button items anymore (as before iOS 9). Especially when touching a bar button item while the popover is presented I get the following warning:
Warning: Attempt to present <UINavigationController: 0x7fcff393cc00> on <SLLoggingNavigationViewControllerClass: 0x7fcff18c9600> which is already presenting (null)
This happens in iOS 9 on an iPad. How do I get the old behaviour back? And how do I get rid of the warning?
Regards,
Hartwig