2013-12-05 05:57:44 +00:00
|
|
|
//
|
|
|
|
// LAViewController.m
|
|
|
|
// photobackup
|
|
|
|
//
|
|
|
|
// Created by Nick O'Neill on 10/20/13.
|
|
|
|
// Copyright (c) 2013 The Camlistore Authors. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
#import "LAViewController.h"
|
2013-12-11 19:57:22 +00:00
|
|
|
#import "LACamliClient.h"
|
2013-12-05 05:57:44 +00:00
|
|
|
|
|
|
|
@interface LAViewController ()
|
|
|
|
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation LAViewController
|
|
|
|
|
|
|
|
- (void)viewDidLoad
|
|
|
|
{
|
|
|
|
[super viewDidLoad];
|
2013-12-11 19:57:22 +00:00
|
|
|
|
|
|
|
[self.client getRecentItemsWithCompletion:^(NSArray *objects) {
|
|
|
|
LALog(@"got objects: %@",objects);
|
|
|
|
}];
|
2013-12-05 05:57:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#pragma mark - collection methods
|
|
|
|
|
|
|
|
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
|
|
|
|
{
|
|
|
|
return 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
|
|
|
|
{
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
|
|
|
|
{
|
|
|
|
UICollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"collectionCell" forIndexPath:indexPath];
|
|
|
|
|
|
|
|
cell.backgroundColor = [UIColor redColor];
|
|
|
|
|
|
|
|
return cell;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void)didReceiveMemoryWarning
|
|
|
|
{
|
|
|
|
[super didReceiveMemoryWarning];
|
|
|
|
// Dispose of any resources that can be recreated.
|
|
|
|
}
|
|
|
|
|
|
|
|
@end
|