my problem ist that i have UITableView with two sections. In the first section i have objects of a NSArray and the second section should be filled with core-data results.
But if i use the fetchedResultsController it sets the section of his data to 0 and not to 1 as i need.
So cellForIndexPath uses the indexPath, and if i want to display the core-data in section 1 the fetchedResultsController doesn t find data.
My current workaround is
if (indexPath.section == 1) {
NSIndexPath *temp = [NSIndexPath indexPathForRow:indexPath.row inSection:indexPath.section-1];
and then use temp instead of indexPath.
But it s very ugly to check in every UITableView function if the section==1.
能否在第1节中找到直接结果?
Thank you very much! Seega