super.viewWillAppear(animated)は自分で書く必要あり。
override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) }
投稿日:
super.viewWillAppear(animated)は自分で書く必要あり。
override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) }
執筆者:swift
関連記事
TextFieldがキーボードで隠れるのを防ぐ(ライブラリ使用)
TextFieldがキーボードで隠れるのを防ぐのに、以前の記事ではNotificationCenterを使う方法を書いた。 キーボードでtextFieldが隠れないようにする しかし、このやり方では、 …
StaticCellでコードからセルに変更を加えたい時の対処法
StaticCellだと、セルに情報を入れるメソッドfunc tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath …
StaticCellでコードから特定のセルを選択状態にしたい時
セルを選択したいタイミングに以下のコードを書く。 sectionとrowでセルを指定する。 tableView.selectRow(at: IndexPath(row: 0, section: 1), …