Created
April 13, 2019 23:25
-
-
Save JeremyXue77/dcf3a350150d0be15d8fb7137200788f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @IBAction func changeRows(_ sender: UIStepper) { | |
| let alert = UIAlertController(title: "", message: "Your password will be cleared. Do you want to continue?", preferredStyle: .alert) | |
| let continueAction = UIAlertAction(title: "Continue", style: .default) { [weak self](_) in | |
| self?.row = Int(sender.value) | |
| self?.password = [] | |
| self?.gestureCollectionView.reloadSections(IndexSet(integer: 0)) | |
| } | |
| let cancelAction = UIAlertAction(title: "Cancel", style: .cancel, handler: nil) | |
| alert.addAction(continueAction) | |
| alert.addAction(cancelAction) | |
| self.present(alert, animated: true, completion: nil) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment