let alert = UIAlertController(title: "비밀번호 바꾸기", message: "비밀번호를 바꾸시겠습니까?", preferredStyle: .alert)
let success = UIAlertAction(title: "확인", style: .default) { action in
print("확인버튼이 눌렸습니다.")
}
let cancel = UIAlertAction(title: "취소", style: .default){ cancel in
print("취소버튼이 눌렸습니다.")
}
alert.addAction(cancel)
alert.addAction(success)
// 다음화면
present(alert, animated: true, completion: nil)
// completion => 알림창 표시되었을 때 실행되어야 할 코드