This file contains hidden or 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
extension UIViewController { | |
func presentInfoAlert(_ viewcontroller: UIViewController, withTitle title: String = "", message : String, completion: ((String) -> Swift.Void)? = nil) { | |
let alertController = UIAlertController(title: title, message: message, preferredStyle: .alert) | |
let OKAction = UIAlertAction(title: "확인", style: .default) { action in | |
if completion != nil { | |
completion!("OK") | |
} |