iphone - Select all cells in UITableView even invisible cell in iOS -
All my cells Chunensbi a method I have to choose my Here's my method: Document: Return value: the table is not visible, table or You can create an array that contains a list of booleans to Czech or unchecked, and when the cell appear, then inquire. UITableView . Check this method to check a checkbox
(UIButton) . This is a great job for
"visible" cells, but not
"invisible" cells!
- (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; }}}}}
Selforruatindpath:
object that represents a cell of zero Or indexpath is out of range.
Comments
Post a Comment