UIAlertController1 UIAlertController, UIAlertAction //1. 알람창 형식 정의 let alert = UIAlertController(title: "로그인", message: "로그인 하시겠습니까?", preferredStyle: .alert) //2. 버튼정의 let okAction = UIAlertAction(title: "확인", style: .default, handler: {(UIAlertAction) in }) let cancelAction = UIAlertAction(title: "취소", style: .cancel) //3. 버튼을 알림창 객체에 추가 alert.addAction(okAction) alert.addAction(cancelAction) self.present(alert,animated: true) 액션시트부분 let alert .. 2018. 2. 9. 이전 1 다음