var alertController: UIAlertController!
func alert(title:String, message:String) {
alertController=UIAlertController(title:title,message:message,preferredStyle: .alert)
alertController.addAction(UIAlertAction(title: "OK",style: .default,handler: nil))
present(alertController, animated: true)
}
// 出したい所に書く 例ボタン押した後のアクションとして
alert(title: "タイトル",
message: "メッセージ内容")
クオリティー低いですが、私のアプリも宜しくお願いします!
↓ ↓ ↓
↓ ↓ ↓
コメントをお書きください