мммм, мало возможностей:
1) сохранить ссылку на все ячейки в вашем UITableViewController
В вашем tableView:cellForRowAtIndexPath:
, прямо перед возвратом ячейки, добавьте его в массив, который у вас есть как свойство на вашем UITableViewController
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
//Set up your cell
[[self allCells] addObject:cell];
return cell;
}
-(void)getSliderValues {
for(CustomCell *cell in [self allCells]){
//Here is your cell
cell;
}
}
2) использовать tableView:cellForRowAtIndexPath:
-(void)getSliderValues {
int section = 0;
int numberOfCells = [self tableView:[self tableView] numberOfRowsInSection:section];
for(int row = 0; row < numberOfCells; row++) {
NSIndexPath *indexPath = [NSIndexPath indexPathForRow:row inSection:section];
//Here is your cell
CustomCell *cell = [self tableView:[self tableView] cellForRowAtIndexPath:indexPath];
}
}
Обратите внимание, что в этом методе, если вы используете идентификаторы повторного использования, вы, вероятно, не получите нужную ячейку.