what would be the best method to select all the cells in the table(UITableView) when the user presses a button in the tool bar?
See Question&Answers more detail:oswhat would be the best method to select all the cells in the table(UITableView) when the user presses a button in the tool bar?
See Question&Answers more detail:osHere is my method to traverse a table, it works well.
for (int i = 0; i < [ptableView numberOfSections]; i++) {
for (int j = 0; j < [ptableView numberOfRowsInSection:i]; j++) {
NSUInteger ints[2] = {i,j};
NSIndexPath *indexPath = [NSIndexPath indexPathWithIndexes:ints length:2];
UITableViewCell *cell = [ptableView cellForRowAtIndexPath:indexPath];
//Here is your code
}
}