Skip to content

Commit

Permalink
+Fix issue with delete thingy action sheet not working on iPad causin…
Browse files Browse the repository at this point in the history
…g a crash
  • Loading branch information
Berg, Mostafa committed Dec 12, 2017
1 parent 406e3b8 commit ec171ac
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -465,6 +465,8 @@ class MainMenuViewController: UIViewController, UITableViewDataSource, UITableVi
alert.addAction(UIAlertAction(title: "Forget", style: .destructive) { (action) in
self.removePeripheral(peripheralToRemove, at: indexPath)
})
alert.popoverPresentationController?.permittedArrowDirections = [.up]
alert.popoverPresentationController?.sourceView = tableView.cellForRow(at: indexPath)
present(alert, animated: true)
}
}
Expand Down

0 comments on commit ec171ac

Please sign in to comment.