개발모음집

ios actionSheet 본문

TheRestDevelop

ios actionSheet

void 2018. 9. 5. 09:00

ViewController.swift


class ViewController: UITableViewController {

....

 @IBAction func vidision(_ sender: Any) {

        

        let alert =  UIAlertController(title: "원하는 타이틀", message: "원하는 메세지", preferredStyle: .actionSheet)

        

        let cancel = UIAlertAction(title: "취소", style: .cancel, handler: nil)


        alert.addAction(cancel)

        present(alert, animated: true, completion: nil)

    }

}


출처 : https://zeddios.tistory.com/111?category=682195