목록Alert (1)
꾸준히 안타치기

import UIKit class ViewController: UIViewController { @IBOutlet var result: UILabel! // 알림창결과값 override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } // 버튼 @IBAction func alert(_ sender: Any) { // 메시지창 객체 생성 let alert = UIAlertController(title:"선택", message: "항목을 선택해주세요", preferredStyle: .alert) // // 취소버튼 let cancel = UIAlertAction(title:"취소", sty..
iOS/storyboard & code
2021. 12. 27. 13:00