To add the specified image to the user's Camera Roll album in Obj-C can use UIImageWriteToSavedPhotosAlbum method.
What is equivalent on MonoTouch or how can i do that?
The UIImageWriteToSavedPhotosAlbum
function maps to UIImage.SaveToPhotosAlbum
.
Craig has a sample showing how to use this API on his blog.
EDIT : The simple sample code: (photo is UIImage
)
photo.SaveToPhotosAlbum((image, error) => {
if (error == null)
new UIAlertView("", "Saved", null, "OK", null).Show();
else
new UIAlertView("", "Failed", null, "OK", null).Show();
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.