Skip to content

Commit 68d0b4d

Browse files
author
Thomas Taschauer
committed
fix crash on ipad
1 parent 8f4fa72 commit 68d0b4d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

OpenDocumentReader/DocumentViewController.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ class DocumentViewController: UIViewController, DocumentDelegate {
149149
self.showWebsite()
150150
}))
151151
alert.addAction(UIAlertAction(title: "Cancel", style: .cancel, handler: nil))
152+
153+
alert.popoverPresentationController?.sourceView = menuButton.value(forKey: "view") as? UIView
152154
self.present(alert, animated: true, completion: nil)
153155
}
154156

0 commit comments

Comments
 (0)