Technical Test

This application consists in two UIViewController. The first one has an
UITableViewController linked to CoreData. This table shows what is
stored order by rating. Each cell displays one picture, name and rating.
The second view is a detail visualization of each picture. It shows
name of the photo, description (maximum 3 lines), user avatar and user
name, name of the camera, aperture, lens, focus, iso and location. This
view only shows the available info.

Whenever the application is launched, it shows data that is currently
stored in the local SQLite and checks for an update automatically. If
there are a response, the application erases all content and stores the
new one. If the user scrolls at the bottom the the table it will ask
for more pictures.
I bet your are asking for _tblView ivar. I copied that section of code from
an old project and I didn't realize, I should have used the property.

2014-11-03 14:41 GMT+01:00 Rubén Méndez <notifications@github.com>:

> In agpaton_PopularPhotos/ViewController.m:
>
> > +    NSError *error = nil;
> > +    if (![_fetchedResultsController performFetch:&error])
> > +    {
> > +        // Replace this implementation with code to handle the error appropriately.
> > +        // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
> > +        //NSLog(@"<fetchedResultsController> Unresolved error %@, %@", error, [error userInfo]);
> > +        abort();
> > +    }
> > +
> > +    _fetchedResultsController.delegate = self;
> > +    return _fetchedResultsController;
> > +}
> > +
> > +- (void)controllerWillChangeContent:(NSFetchedResultsController *)controller
> > +{
> > +    [_tblView beginUpdates];
>
> why do you use the ivar?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/TheRanking/theranking-ios-candidates/pull/4/files#r19732707>
> .
>