Use “stop” not “cancel” buttons.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent 2564f53060
commit 58eb77e073

@ -38,7 +38,7 @@ class AttachmentApprovalViewController: UIViewController {
view.backgroundColor = UIColor.black view.backgroundColor = UIColor.black
self.navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem:.done, self.navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem:.stop,
target:self, target:self,
action:#selector(donePressed)) action:#selector(donePressed))
self.navigationItem.title = NSLocalizedString("ATTACHMENT_APPROVAL_DIALOG_TITLE", self.navigationItem.title = NSLocalizedString("ATTACHMENT_APPROVAL_DIALOG_TITLE",

@ -91,11 +91,11 @@ open class ContactsPicker: UIViewController, UITableViewDelegate, UITableViewDat
} }
func initializeBarButtons() { func initializeBarButtons() {
let cancelButton = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.cancel, target: self, action: #selector(onTouchCancelButton)) let cancelButton = UIBarButtonItem(barButtonSystemItem: .stop, target: self, action: #selector(onTouchCancelButton))
self.navigationItem.leftBarButtonItem = cancelButton self.navigationItem.leftBarButtonItem = cancelButton
if multiSelectEnabled { if multiSelectEnabled {
let doneButton = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.done, target: self, action: #selector(onTouchDoneButton)) let doneButton = UIBarButtonItem(barButtonSystemItem: .done, target: self, action: #selector(onTouchDoneButton))
self.navigationItem.rightBarButtonItem = doneButton self.navigationItem.rightBarButtonItem = doneButton
} }
} }

Loading…
Cancel
Save