UIAlertController(ActionSheet)のタイトルの枠を削除する


日本語の記事がなかったので、書いておきます。

困っている内容

タイトルとサブタイトルの枠が残ってしまう。

実装したいもの

タイトルの枠を削除する

実装方法

titleとmessageをnilにする

ViewController.swift
let alertController:UIAlertController = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet) 

参考ソース