Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

check and uncheck cells in uitableview swift 5

 func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        tableView.cellForRow(at: indexPath)?.accessoryType = .checkmark
  }

  func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) {
        tableView.cellForRow(at: indexPath)?.accessoryType = .none
  }
Comment

PREVIOUS NEXT
Code Example
Swift :: Blinking effect on UILabel 
Swift :: Typealias for built-in types 
Swift :: protocol oriented programming swift github Basic 
Swift :: Swift String and Character Literals 
Swift :: How to load Google map styling from json file for ios swift? 
Swift :: swift uitextfield only numbers keyboard lock programmatically 
Swift :: ios uikit hide/show keyboard if scrolling 
Swift :: Javascript Define Swift Class 
Swift :: swift 5 cancel or end block operation 
Swift :: Swift Assign Values to Variables 
Swift :: swiftui show custom loading spinner 
Swift :: Adapt sfsymbol to frame swiftui 
Swift :: sizetofit not working swift 
Ruby :: rails get list of tables 
Ruby :: ruby sort an object 
Ruby :: ruby calculate execution time 
Ruby :: rails status migrations 
Ruby :: ruby gem dir 
Ruby :: ruby capitalize first character of sentence 
Ruby :: ruby check if a file exists 
Ruby :: rails load environment variables 
Ruby :: ruby array replace element 
Ruby :: ruby find method 
Ruby :: ruby loop through array 
Ruby :: how to add to array ruby 
Ruby :: rails content for head 
Ruby :: ruby find max value in array 
Ruby :: ruby on rails scaffold generator example with belongs to relationship 
Ruby :: ruby on rails array contains multiple values 
Ruby :: List columns in table from console 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =