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.
As I told you in other e-mail I used a template which instantiates it in
appDelegate in order to get access from different places.

Since viewcontroller is the only one that uses it I could have been decided
to declare it locally and pass it to Services files but I prefer do it in
that way.

2014-11-03 14:38 GMT+01:00 Rubén Méndez <notifications@github.com>:

> In agpaton_PopularPhotos/ViewController.m:
>
> > +
> > +#import "AppDelegate.h"
> > +
> > +@interface ViewController ()  <UITableViewDataSource, UITableViewDelegate, NSFetchedResultsControllerDelegate>
> > +@property (nonatomic, strong) UITableView *tblView;
> > +@property (nonatomic, retain, readonly) NSManagedObjectContext *mainMOC;
> > +@property (nonatomic, retain) NSFetchedResultsController *fetchedResultsController;
> > +@property (nonatomic) NSInteger currentPage;
> > +@property (nonatomic) BOOL fetchingData;
> > +@property (nonatomic, strong) UIActivityIndicatorView *spinner;
> > +
> > +@end
> > +
> > +@implementation ViewController
> > +
> > +- (AppDelegate *)appDelegate
>
> Why did you decide to access globally to the appDelegate?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/TheRanking/theranking-ios-candidates/pull/4/files#r19732605>
> .
>