[swift]UIButtonにテキストを設定する

UIButtonにテキストを設定する

UIButtonにテキストを設定するにはsetTitleで設定できる

var button:UIButton;
button.setTitle("ボタンのテキスト", forState: UIControlState.Normal)

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です