728x90
UIAlertController Button
@IBAction func showAlertBtn1(){
let alert = UIAlertController(title: "Title Message", message: "Description", preferredStyle: .alert)
let action = UIAlertAction(title: "Close", style: .default, handler: nil)
alert.addAction(action)
present(alert, animated: true, completion: nil)
}
@IBAction func showAlertBtn2(){
let alert = UIAlertController(title: "Title Message", message: "Description", preferredStyle: .actionSheet)
let action = UIAlertAction(title: "Close", style: .default, handler: nil)
alert.addAction(action)
present(alert, animated: true, completion: nil)
}
728x90
반응형
'Apple > Swift' 카테고리의 다른 글
151_180802_프로젝트 생성 및 텍스트 출력 (0) | 2018.08.02 |
---|