I have a UITableView of downloadable items and I used another UITableView for the download item info. How can I reload the UiTableView of all UITableViewCell?
I tried using [downloadList reloadData];
but it only refreshes the big table.
Edit: I'm trying to do something like this: jsfiddle.net/WrNFU. I want details aligned properly but the problem is that the title can be too long and I'm not sure how many lines the title is going to use. I used a second table because of heightForRowAtIndexPath function which enables me to adjust the title row's height.
Answer:
Using the code I found here: iPad: Iterate over every cell in a UITableView?
for (int section = 0; section < [downloadList numberOfSections]; section++) {
for (int row = 0; row < [downloadList numberOfRowsInSection:section]; row++) {
NSIndexPath* cellPath = [NSIndexPath indexPathForRow:row inSection:section];
UITableViewCell* cell = [downloadList cellForRowAtIndexPath:cellPath];
UITableView *tempTableView = (UITableView *)[cell viewWithTag:110];
[tempTableView reloadData];
}
}