-
iOS) alert(알림) 만들기Programing Language/iOS(Swift) 2020. 3. 26. 18:13728x90반응형This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
let alert = UIAlertController(title: "알림", message: "띠리링~~~~", preferredStyle: UIAlertController.Style.alert) let okAction = UIAlertAction(title: "OK", style: .default) { (action) in //OK 버튼 누른뒤 수행할 코드 } alert.addAction(okAction) present(alert, animated: false, completion: nil) 728x90반응형'Programing Language > iOS(Swift)' 카테고리의 다른 글
iOS) HEX 코드를 UIColor 변수에 담기 (0) 2020.04.09 iOS) Label에 입력되는 텍스트 중에 특정 단어의 크기나 색 바꾸기[펌] (0) 2020.04.01 iOS ) 패스워드 관련 정규 표현식 [swift] (0) 2020.03.26 iOS) UITextField에 비밀번호 타입으로 값 입력하기 (0) 2020.03.26 iOS) collectionview Cell 삭제하는 방법 (2) 2020.03.20