alert customizing (1) 썸네일형 리스트형 [iOS] UIKit 알림창 UIAlertController customizing 하기 UIKit에서 알림창을 띄우는 객체는 UIAlertController이다. 경고창과 액션 시트 두 가지를 모두 구현 가능하며 다음과 같이 구현할 수 있다. 1. Alert 구현 let alert = UIAlertController(title: "Alert", message: "Alert창 입니다.", preferredStyle: .alert) alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil)) self.present(alert, animated: true); 위와 같이 알림창의 버튼은 UIAlertAction 객체이며 이 객체를 addAction 메소드를 사용하여 UIAlertController 객체에 추가해줘야 한다. 2.. 이전 1 다음