今回はUIButtonのフォントサイズを変更する方法をこの記事で説明します。
この記事のポイント・UIButtonのフォントサイズ変更方法
UIAlertControllerの宣言
UIButtonを以下のように設定します。
let btn: UIButton = UIButton()
//ボタン名
btn.setTitle("次へ", forState: UIControlState.Normal)
//ボタンタイトルのフォントサイズ
btn.titleLabel?.font = UIFont.systemFontOfSize(20)
これでUIButtonのフォントサイズが変更されます。