After upgrading my iPad to iPadOS 26.0, I noticed that when using UIPopoverPresentationController, the popover no longer appears at the expected position. According to the debug logs, the position of the arrow indicator is printed correctly. Interestingly, the issue can be fixed temporarily by switching between portrait and landscape orientations. Could you please help me resolve this issue?
UIAlertController *newSheet = [UIAlertController alertControllerWithTitle:@"111111"
message:@"2222222222222"
preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction *action = [UIAlertAction actionWithTitle:@"1112313" style:(UIAlertActionStyleDefault) handler:^(UIAlertAction * _Nonnull action) {
}];
[newSheet addAction:action];
newSheet.modalPresentationStyle = UIModalPresentationPopover;
UIPopoverPresentationController *popover = [newSheet popoverPresentationController];
popover.sourceView = cell;
[self presentViewController:newSheet animated:YES completion:nil];
Topic:
Developer Tools & Services
SubTopic:
Apple Developer Program