Skip to content

Commit

Permalink
add cancel action
Browse files Browse the repository at this point in the history
  • Loading branch information
Harley-xk committed Apr 24, 2019
1 parent 70ee0bc commit 7830035
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Example/MaLiang/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ class ViewController: UIViewController {
actionSheet.addAction(title: "Save", style: .default) { [unowned self] (_) in
self.saveData()
}
actionSheet.addAction(title: "Cancel", style: .cancel)
present(actionSheet, animated: true, completion: nil)
}

Expand Down

0 comments on commit 7830035

Please sign in to comment.