AutoLayoutで均等に並べるための基本が分かりやすく載っている↓
AutoLayoutで均等な横並びにする
投稿日:
執筆者:swift
投稿日:
AutoLayoutで均等に並べるための基本が分かりやすく載っている↓
執筆者:swift
関連記事
パーツはStoryBoardで置く以外に、コードからも配置できる。 ImageViewをコードから配置してみる。 1.インスタンスを生成する //インスタンス生成 var imageView = UI …
super.viewWillAppear(animated)は自分で書く必要あり。 override func viewWillAppear(_ animated: Bool) { super.vie …
アラートを表示するメソッド //アラート func displayAleart() { let alert: UIAlertController = UIAlertController(title: …
StaticCellでコードから特定のセルを選択状態にしたい時
セルを選択したいタイミングに以下のコードを書く。 sectionとrowでセルを指定する。 tableView.selectRow(at: IndexPath(row: 0, section: 1), …