iphone - Select all cells in UITableView even invisible cell in iOS -


All my cells Chunensbi a method I have to choose my UITableView . Check this method to check a checkbox (UIButton) . This is a great job for "visible" cells, but not "invisible" cells!

Here's my method:

  - (IBAction) Chunensbi: (id) sender {for (NSInteger s = 0; s & lt; self.tableView.numberOfSections; s ++) {for (NSInteger r = 0; r & lt; [self.tableView numberOfRowsInSection: S]; r ++) {Kstmsel * cell = [Swatabl view Selforraaetindakspath [Ansaiaiansakspath Indekspathforar R Insakshn S]]; If (! Cell.checkbox.selected) {cell.checkbox.selected =! Cell.checkbox.selected; Cell.account.checked = cell.checkbox.selected; }}}}}    

Document:

  Selforruatindpath:   

Return value:

the table is not visible, table or object that represents a cell of zero Or indexpath is out of range.

You can create an array that contains a list of booleans to Czech or unchecked, and when the cell appear, then inquire.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -