代码改变世界

ALAssetsLibrary

2012-10-31 11:19  -king  阅读(549)  评论(0)    收藏  举报

使用ALAssetsLibrary类库时 需要引进相关的framwork 否则会引起以下错误

Undefined symbols for architecture armv7:"_OBJC_CLASS_$_ALAssetsLibrary", referenced from:
  objc-class-refinCDVBarcodeScanner.o
需要引进的相关类库为

AVFoundation.framework

AssetsLibrary.framework

CoreVideo.framework

libiconv.dylib

get done

there is a good tutorial, show the way to add a image into a new album.just use a  method.

 

-(void)saveImage:(UIImage*)image
         toAlbum:(NSString*)albumName
withCompletionBlock:(SaveImageCompletion)completionBlock;

 

http://www.touch-code-magazine.com/ios5-saving-photos-in-custom-photo-album-category-for-download/

one more question is: although i've create a new album,but,how can i get the photoes in the albums when i'm using an app.