LoginSignup
4
3

More than 5 years have passed since last update.

Swiftで編集モードのセルを選択可能にする

Last updated at Posted at 2015-04-09

SwiftでもObjective-cでもテーブルのセルが編集モードになっているとセルを選択することが出来ません。

なので、それを可能にするために以下のコードを加えます。

        //編集中のセル選択を許可
        myTableView.allowsSelectionDuringEditing = true

ちなみに、選択状態かどうかの判別は以下で出来ます。

        if self.editing{
             println("編集モードです")
        }
4
3
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
4
3