Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if titleAddEditTextField.text == "" || noteAddEditTextView.text == "" {
- print("EMPTY STRINGS DO NOT GO BACK đ´")
- let alert = UIAlertController(title: "Field Error âšī¸", message: "Fields must be filled in", preferredStyle: .alert)
- alert.addAction(UIAlertAction(title:"Dismiss đ", style: .default, handler: nil))
- self.present(alert, animated: true)
- }
- else if dateAddEditPicker.date < Date() {
- print("must select future date")
- let alert = UIAlertController(title: "incorrect Date đ", message: "date must be future â°", preferredStyle: .alert)
- alert.addAction(UIAlertAction(title:"Dismiss đ", style: .default, handler: nil))
- self.present(alert, animated: true)
- } else {
- performSegue(withIdentifier: "unwindsegueFromAddEditVC", sender: self)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement