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.
It is wrong. It should have been weak since I referenced it from
appDelegate in order to avoid retain life cycle. My first approach was to
instantiate mainMOC in ViewController, but I used the Xcode Core Data
template and I forgot to change that property.

I usually use singleton or appDelegate for mainMOC due it is used in
different places.

2014-11-03 14:28 GMT+01:00 Rubén Méndez <notifications@github.com>:

> In agpaton_PopularPhotos/ViewController.m:
>
> > +//  Copyright (c) 2014 Alejandro González Patón. All rights reserved.
> > +//
> > +
> > +#import "ViewController.h"
> > +#import "Services.h"
> > +#import "ImageTools.h"
> > +
> > +#import "PhotoViewCell.h"
> > +
> > +#import "DetailViewController.h"
> > +
> > +#import "AppDelegate.h"
> > +
> > +@interface ViewController ()  <UITableViewDataSource, UITableViewDelegate, NSFetchedResultsControllerDelegate>
> > +@property (nonatomic, strong) UITableView *tblView;
> > +@property (nonatomic, retain, readonly) NSManagedObjectContext *mainMOC;
>
> Why is this property 'retain'?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/TheRanking/theranking-ios-candidates/pull/4/files#r19732168>
> .
>