Hi
I have a app that works with Core Data. The data has a field with a date and I would like to show every entry of a month in a seperate section.
How do I actually get the data ? I use a NSFetchedResultsController to get the data and use this :
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
id <NSFetchedResultsSectionInfo> sectionInfo = [[_fetchedResultsController sections] objectAtIndex:section];
return [sectionInfo numberOfObjects];
}
to get the rows and this :
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
MyInfoObject *info = [_fetchedResultsController objectAtIndexPath:indexPath];
}
to get my actually data object.
Thanks