1
要將指定圖像添加到Obj-C中用戶的相機膠捲相冊,可以使用UIImageWriteToSavedPhotosAlbum方法。如何將指定圖像添加到用戶的MonoTouch上的相機膠捲相冊
MonoTouch上的等價物或我該怎麼做?
要將指定圖像添加到Obj-C中用戶的相機膠捲相冊,可以使用UIImageWriteToSavedPhotosAlbum方法。如何將指定圖像添加到用戶的MonoTouch上的相機膠捲相冊
MonoTouch上的等價物或我該怎麼做?
UIImageWriteToSavedPhotosAlbum
功能映射到UIImage.SaveToPhotosAlbum
。
Craig的sample顯示瞭如何在他的博客上使用此API。
EDIT:簡單的示例代碼:(照片是UIImage
)
photo.SaveToPhotosAlbum((image, error) => {
if (error == null)
new UIAlertView("", "Saved", null, "OK", null).Show();
else
new UIAlertView("", "Failed", null, "OK", null).Show();
});