3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Buttonのタイトル変更について

Posted at

Buttonのタイトルが変更できない、、、

Labelと同じだと思い

changeButtonTitle
ボタン名.currentTitle = "変更したいタイトル名"

とすると、エラーが表示されてしまいました。

変更方法

以下のコードで変更できました↓

changeButtonTitle
ボタン名.setTitle("変更したいタイトル名", for: .normal)
参考サイト
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?