notification alert ipad crash (#1351)

This commit is contained in:
Ryan Nystrom
2018-01-05 13:24:26 -05:00
committed by GitHub
parent d5fe0646ff
commit 4575f07938

View File

@@ -70,7 +70,7 @@ FlatCacheListener {
image: UIImage(named: "bullets-hollow"),
style: .plain,
target: self,
action: #selector(NotificationsViewController.onMore)
action: #selector(NotificationsViewController.onMore(sender:))
)
item.accessibilityLabel = NSLocalizedString("More options", comment: "")
navigationItem.leftBarButtonItem = item
@@ -82,7 +82,7 @@ FlatCacheListener {
// MARK: Private API
@objc func onMore() {
@objc func onMore(sender: UIBarButtonItem) {
let alert = UIAlertController.configured(preferredStyle: .actionSheet)
alert.add(action: UIAlertAction(
@@ -106,6 +106,8 @@ FlatCacheListener {
alert.add(action: AlertAction.cancel())
alert.popoverPresentationController?.barButtonItem = sender
present(alert, animated: true)
}