[UIkit] Alert
·
🍎 iOS/UIkit
func popUp() { let alert = UIAlertController(title: "알림창이름", message: "알림창 메시지", preferredStyle: .alert) let success = UIAlertAction(title: "확인", style: .default) { action in print("확인버튼이 눌렸습니다.") } let cancel = UIAlertAction(title: "취소", style: .cancel) { cancel in print("취소버튼이 눌렸습니다.") } alert.addAction(success) alert.addAction(cancel) present(alert, animated: true) { print("완료되었음") } }
JerryiOS
'alert' 태그의 글 목록