iPhone无法在iPhone上创建相册 [英] iPhone No Saved Photo Album created on iPhone

查看:204
本文介绍了iPhone无法在iPhone上创建相册的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用iPhone 2.0 SDK。我使用API​​ UIImageWriteToSavedPhotosAlbum保存图像。
当我保存图像但在将图像添加到相机胶卷相册中的设备上进行测试时,会在iPhone模拟器上创建一个保存的照片相册。调试时,不会发生任何错误,但不会在设备上创建保存的照片相册。

I am using iPhone 2.0 SDK. I used the API UIImageWriteToSavedPhotosAlbum to save an image. A Saved Photos album gets created on the iPhone Simulator when I save an image but tested on the device the image gets added in the Camera Roll album. While debugging, no errors occur but the Saved Photos album is not created on the device.

推荐答案

模拟器之间的命名约定只是不同的(我为iPod touch成像)和iPhone。由于iPhone具有相机,因此保存的相册称为相机胶卷。由于模拟器没有相机,因此保存的相册称为保存的照片(或其他名称)。

It's just different naming conventions between simulator (and I image iPod touch) and iPhone. Since the iPhone has a camera, the Saved Album is called "Camera Roll". Since the simulator doesn't have a camera, the Saved Album is called "Saved Photos" (or whatever).

使用UIImageWriteToSavedPhotosAlbum()可以将照片写入相应的相册。

Using UIImageWriteToSavedPhotosAlbum() should write the photo to the appropriate album.

如果将图像保存到在iPhone上使用相机胶卷,则您的代码可以正常工作。

If the image is being saved to Camera Roll on your iPhone, then your code is working properly.

这篇关于iPhone无法在iPhone上创建相册的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆