Center the pop over arrow in the button the same way that Apple does in Mail
This commit is contained in:
parent
7ac18029ea
commit
2f5225163d
|
@ -284,7 +284,7 @@ class MasterFeedViewController: UITableViewController, UndoableCommandRunner {
|
||||||
let alert = UIAlertController(title: feed.name, message: nil, preferredStyle: .actionSheet)
|
let alert = UIAlertController(title: feed.name, message: nil, preferredStyle: .actionSheet)
|
||||||
if let popoverController = alert.popoverPresentationController {
|
if let popoverController = alert.popoverPresentationController {
|
||||||
popoverController.sourceView = view
|
popoverController.sourceView = view
|
||||||
popoverController.sourceRect = CGRect(x: 0, y: 0, width: view.frame.size.width, height: view.frame.size.height)
|
popoverController.sourceRect = CGRect(x: view.frame.size.width/2, y: view.frame.size.height/2, width: 1, height: 1)
|
||||||
}
|
}
|
||||||
|
|
||||||
if let action = self.homePageAlertAction(indexPath: indexPath, completionHandler: completionHandler) {
|
if let action = self.homePageAlertAction(indexPath: indexPath, completionHandler: completionHandler) {
|
||||||
|
|
Loading…
Reference in New Issue