-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAlbumsListViewController.h
36 lines (27 loc) · 1.41 KB
/
AlbumsListViewController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// AlbumsListViewController.h
// CollectionViewTutorial
//
// Created by Paulo Cristo on 6/8/13.
// Copyright (c) 2013 Bryan Hansen. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AssetsLibrary/AssetsLibrary.h>
@class CLLocation;
typedef void(^SaveImageCompletion)(NSError* error);
@interface AlbumsListViewController : UITableViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil predefined: (NSString*) albumName available: (NSArray *)albums;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil predefined: (NSString*) albumName;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil;
-(void)saveImage:(UIImage*)image toAlbum:(NSString*)albumName withCompletionBlock:(SaveImageCompletion)completionBlock;
-(void)addAssetURL:(NSURL*)assetURL toAlbum:(NSString*)albumName withCompletionBlock:(SaveImageCompletion)completionBlock;
- (void)saveOnAlbum: (UIImage*)image;
@property (strong,nonatomic) NSArray *albumsNames;
@property (strong, atomic) ALAssetsLibrary* library;
//the one from within the take photo was originally called
@property (copy, nonatomic) NSString* predefinedAlbum;
//all the needed info to save the image to the selected album
@property (strong, nonatomic) UIImage* imageToSave;
@property (strong, nonatomic) NSDictionary* imageInfo;
@property (strong,nonatomic) CLLocation *photoLocation;
@end