I have Button in tableview I want when I press that button will select all cell rows, how to do that? I tried alot but I got nothing
I\'m so confused how to make the but
var isSelectAll = false; //global variable isSelectAll = true;//on button action self.tableView.reloadData()//on button action
in cellForRowAtIndexPath method
cellForRowAtIndexPath
if(isSelectAll==true) { cell.backgroundColor = UIColor.blueColor(); } else { cell.backgroundColor = UIColor.white(); }