0
1

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.

【Swift5】tableViewCellのsubtitleのテキストの書き方

Posted at

tableViewCellのsubtitleの記述の仕方がわからなかったのでメモとしてここに書きます。

上がタイトルで下がサブタイトルです。

スクリーンショット 2020-01-10 15.15.50.png

//こっちがタイトル
cell.textLabel?.text = object.title
//こっちがサブタイトル
cell.detailTextLabel?.text = object.meaning

ちなみにセルの中のレイアウトの設定の仕方は

ここです。

スクリーンショット 2020-01-10 15.19.41.png

スクリーンショット 2020-01-10 15.19.47.png

0
1
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
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?