Created
January 12, 2009 04:42
-
-
Save atnan/45893 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
id photoLibrary = [[PLPhotoLibrary alloc] initWithPath:@"/var/mobile/Media/Photos"]; | |
photoList = [[NSMutableDictionary alloc] init]; | |
int totalAlbums = [[photoLibrary albums] count]; | |
int i, j; | |
for (i = 0; i < num; i++) { | |
album = [[photoLibrary albums] objectAtIndex:i]; | |
id images = [album images]; | |
for (j = 0; j < [images count]; j++) { | |
id imageID = [NSNumber numberWithInt: [[images objectAtIndex:j] imageID]]; | |
[photoList setObject:album forKey:imageID]; | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface PLPhotoLibrary : MLPhotoLibrary | |
{ | |
} | |
+ (id)sharedPhotoLibrary; | |
+ (id)photosDirectory; | |
+ (struct CGImage *)createThumbnailOfImage:(struct CGImage *)fp8 format:(int)fp12 atPath:(id)fp16; | |
+ (struct CGImage *)createThumbnailOfImage:(struct CGImage *)fp8 format:(int)fp12 atPath:(id)fp16 orientation:(int)fp20; | |
+ (struct CGImage *)createThumbnailOfImage:(struct CGImage *)fp8 format:(int)fp12 atPath:(id)fp16 orientation:(int)fp20 thumbnailDataOut:(id *)fp24; | |
- (id)init; | |
- (void)dealloc; | |
- (struct CGImage *)createCGImageForDulcimerImage:(id)fp8 format:(int)fp12; | |
- (id)imageForFormat:(int)fp8 forImage:(id)fp12; | |
- (id)albums; | |
- (id)posterImageForAlbum:(id)fp8; | |
- (void)_cameraAlbumContentsChanged:(id)fp8; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment