更新时间:2022-11-04 20:50:22
iOS5 包括 AssetsLibrary 框架,让您有机会在用户的照片库中管理应用程序自己的相册。
iOS5 includes new API in the AssetsLibrary
framework, which afford you the chance to manage your app’s own photo album inside the user’s photo library.
我觉得这很容易peasy。你的应用应该创建一个 UIImage
,只需要将它传递给下面的方法以及专辑名称和要处理的块。
I think it is easy peasy. Your app should create an UIImage
and will just need to pass it to the below method along with the album name and a block to handle.
-(void)saveImage:(UIImage*)image
toAlbum:(NSString*)albumName
withCompletionBlock:(SaveImageCompletion)completionBlock;
您可以看到更多详情 here
You can see more details here