Iphone 如何将使用iOS SDK拍摄的照片添加到用户的相机卷中?
我的应用程序允许用户使用iOS SDK拍照,并将其添加到应用程序内的数据中。是否有办法将这些照片添加到相机卷中,以便他们也可以通过照片流在计算机上访问这些照片?有一个名为UIImageWriteToSavedPhotosAlbum的函数可以让您这样做Iphone 如何将使用iOS SDK拍摄的照片添加到用户的相机卷中?,iphone,ios,ios5,camera,photo,Iphone,Ios,Ios5,Camera,Photo,我的应用程序允许用户使用iOS SDK拍照,并将其添加到应用程序内的数据中。是否有办法将这些照片添加到相机卷中,以便他们也可以通过照片流在计算机上访问这些照片?有一个名为UIImageWriteToSavedPhotosAlbum的函数可以让您这样做 UIImage* image = //image from somewhere UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil); 有一个名为UIImageWriteToSavedPhoto
UIImage* image = //image from somewhere
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);
有一个名为UIImageWriteToSavedPhotosAlbum的函数可以让您执行此操作
UIImage* image = //image from somewhere
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);