English 中文(简体)
Save UIImage to Photo Library rather than照相机
原标题:Save UIImage to Photo Library Instead of Camera Roll

我知道如何通过向摄像机发送标准信号来挽救图像。 我也知道,没有摄像机的装置可以节省到照片图书馆。

For devices with a camera, how do I save a UIImage to the Photo Library INSTEAD of the camera roll?

问题回答

您应尝试IOS SDK提供的这种方法,

UIImageWriteToSavedPhotosAlbum(myImage, nil, nil, nil );

我知道如何做到这一点的唯一途径是使用UIImageWrite ToSavedPhotosAlbum, 快速通道是除UIImage参数外一切照亮。

UIImageWriteToSavedPhotosAlbum(UIImage *image, id completionTarget, SEL completionSelector, void *contextInfo);

The photo library is just a placeholder that shows all the pics on your phone, including the camera roll. So, if you deleted a pic from the camera, it would be gone on the photo library. The one in the photo library is not a duplicate; it’s more like a shortcut. Makes perfect sense. It s like a "favorites" folder. It sources it s info from the main folder.

This is what you find. the link shows how to store the images in iPhone Gallery. Check out the link: http://sugartin.info/2012/01/10/permanently-download-image-and-fetch-locally-images/





相关问题
List Contents of Directory in a UITableView

I am trying to list the contents of Ringtones directory in a TableView, however, I am only getting the last file in the directory in ALL cells, instead of file per cell. This is my code: - (...

iPhone NSUserDefaults persistance difficulty

In my app i have a bunch of data i store in the NSUserdefaults. This information consists of an NSObject (Object1) with NSStrings and NSNumbers and also 2 instances of yet another object (Object2). ...

Writing a masked image to disk as a PNG file

Basically I m downloading images off of a webserver and then caching them to the disk, but before I do so I want to mask them. I m using the masking code everyone seems to point at which can be found ...

Resize UIImage with aspect ratio?

I m using this code to resize an image on the iPhone: CGRect screenRect = CGRectMake(0, 0, 320.0, 480.0); UIGraphicsBeginImageContext(screenRect.size); [value drawInRect:screenRect blendMode:...

Allowing interaction with a UIView under another UIView

Is there a simple way of allowing interaction with a button in a UIView that lies under another UIView - where there are no actual objects from the top UIView on top of the button? For instance, ...

热门标签