uitableview - can't disable cell based on background color swift -


i making app uses different colored cells separate cells different categories, have function allows user tap on cells add checkmarks , select them. colored cells disabled when user taps on them don't add checkmark cell , select it. checkmark function:

override func tableview(tableview: uitableview, cellforrowatindexpath indexpath: nsindexpath) -> uitableviewcell {     let cellidentifier = "instrumenttablecell"     let cell: instrumenttablecell! = tableview.dequeuereusablecellwithidentifier(identifier) as? instrumenttablecell      checked = array(count:recipies.count, repeatedvalue:false)     cell.configuratethecell(recipies[indexpath.row])      if !checked[indexpath.row] {         cell.accessorytype = .none     } else if checked[indexpath.row] {         cell.accessorytype = .checkmark     }       return cell } 

try cell.userinteractionenabled = false.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -