iOS28 [iOS] UIAlertController, UIAlertAction 이런 알림창을 띄우고 처리해야 할 때 사용하는 객체가 UIAlertController와 UIAlertAction let alert = UIAlertController(title: "안내", message: "계속하시겠습니까?", preferredStyle: .alert) let actionYes = UIAlertAction(title: "예", style: .default, handler: nil) let actionNo = UIAlertAction(title: "아니오", style: .cancle, handler: nil) alert.addAction(action) alert.addAction(action2) present(alert, animated: true, completion: nil) 우선 .. 2021. 1. 30. 이전 1 2 3 4 다음 728x90